Font Size of an Element

Font Size of an Element
0

#1

Tell us what’s happening:

Your code so far

<style>
  .red-text {
    color: red;
  } 
  .p {font-size: 16px;}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p class="red-text">Kitty ipsum dolor sit amet, shed.</p> <p>everywhere shed everywhere stretching attack your   ankles.</p> <p>chase the red dot, hairball run catnip eat the grass sniff.</p>

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36 OPR/49.0.2725.39 (Edition Campaign 34).

Link to the challenge:


#2

You didn’t include the “Tell us what’s happening” section, which makes helping you much more difficult.

Just looking at your code though, I assume that the problem is that you created a class called p instead of applying a style to <p> elements.


#3

but its not working please


#4

Did you change the second style to apply to p elements instead of creating a class named p?


#5

@brainyalk you have to do .red-text instead of .p because the . selector is used for class


#6

@brainyalk

CSS Selectors . . . . they are not one size fits all and you are mixing them.
The one you are looking for . . .

Cheers,
-WWC