23. pseudo selectors


#1

what is wrong with this code? it tells me the font size is still 16px instead of 26px?

.fancy {
    font-family:cursive;
    color:violet;
}
#serious {
    font-family:Courier;
    color:#8C8C8C;
}
body: nth-child(4) {
    font-size:26px;
}

23. Pseudo Selectors
#2

to select the 4th element inside body, the space should between body and :nth-child(4), the spacing around your colon is wrong

This of course only works if you html code is correct


#3

3 posts were split to a new topic: 23. pseudo selectors


#4

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