The universal selector


#1


Hello !

My problem is in the course Basic CSS structur and syntax-->the universal selector-->part 6/9.
it asks : " In style.css, add the universal selector. Inside of the selector's body, set the font-family to Georgia. "

I do that.

*{

}
h1, h2, p {
color:darkslategray;
}
p{
font-size:18px;
}
body{
font-family:georgia;
}

h1, h2 and p are in the before step (3;4/9 if i remember correctly).

An error message appear : " Did you change the font of all elements to Helvetica? "

So my question is: where is my error ?

thank you.


#2

Does not look like it. You have the font-family on the body.

* {
    font-family: Georgia;
}

#3

The- font-family:georgia; - should be in the universal code. Like this:

*{
font-family:georgia;
}


#4

ok, but it continues to tell me :" Did you change the font of all elements to Helvetica? "
what's the problem ?
thank you for your first reply !


#5

That is a different step, is it not? The step has us set the font-family on P elements to Helvetica?

The lesson has us do some changes as we go, and the page needs to be refreshed after each step to be sure the code is intact.


#6

It tells me now:"Did you change the font of all elements to Georgia?"


#7

This would appear to be an even earlier step. It's not too late to reset the exercise and start over.


#9

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