Problem at 23.Pseudo selectors (Review)


#1

Hey mate I get the 'Oops, try again. Did you give your third paragraph a font-size of 26px? It looks like it's currently undefined.' error as well, even though my code does change the font size of the 3rd paragraph. Here's my code:



Problem at 23.Pseudo selectors (Review)
#2

you should close your heading before your paragraph:

<h3 class="fancy">some text</h3>
<p class="fancy">Fabulous</p>

then, it should be p:nth-child(4), nth-child counts all elements, and if the 4th element is a paragraph, apply the styling between the curly brackets. A better way to explain this, would be to say p:first-child won't apply the styling, the first element is a h3, not a paragraph, so not a match, so the styling between the curly brackets doesn't get executed


#3

2 posts were split to a new topic: Problem at 23.Pseudo selectors