Error


#1

chapter no 8 of css selectors
Task is : Make all

tags have a font-family of Garamond. (Do NOT use the universal selector for this! There's a better way; see the Hint for help.)
what i am doing in the stylesheet.css

i am trying to **p {
font-family: Garamond;
}**

but its not happening


#2

Could you please paste in all your code html and css and any reference error that you might be getting?


#3

It must be a bug. Try to refresh the page.


#4

Hi,

Has your problem been sorted now?


#5

HI william , its just the question i have texted .....every thing is working fine. the only problem is with this part as the question says make all tag to have font-family Garamond.

universal selector and even tried with particular P tag


#6

NO it still remain the same


#7

yes i tried , but the problem remain the same


#8

Could you do this please?


#9

html




Ultimate Text Challenge


Introduction: Cascading with CSS



Synopsis: When you set a property of a selector like 'p' to a certain value, that value applies to all p tags.
If, however, you change that same property to a different value for a more specific instance of p,
that change will override the 'general rule'.



  • If you say p { font-family: Garamond}, all 'p's will have the font Garamond.


  • BUT if you say li p {font-family: Verdana}, 'p's outside of 'li's will be
    in Garamond, and 'p's INSIDE 'li's will be in Verdana.


  • The more specific your selectors are, the higher importance CSS gives to the styling you apply!




Summary: Greater specificity makes CSS prioritize that particular styling.



css

p {
font-family: Garamond;
}
.font {
font-weight: Bold;
font-family: Garamond;
}
div p {

color: #7AC5CD;
}

ul li p {
color: #000000;
text-decoration: underline;

}

#10


#11


#12

the idea of this exercise is not to use classes, introduction and summary paragraph are both a direct child of body.

As for displaying your code on the forum, take a look at this help topic:


#13

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.