This forum is now read-only. Please use our new forums at

CSS Selectors Forum

View Course

319 points
Submitted by
Max Giliberti
about 2 years ago

Last step of the CSS selectors. Pseudo selectors nth-child

Hello. im stuck at the last step of CSS selectors. i did pass the nth-child at the step 4.4 but now, its not working at 5.5. Here is my HTML code:

my html:

    <link type="text/css" rel="stylesheet" href="stylesheet.css"/>
<p class="fancy">nota1</p>
<p class="fancy">nota2</p>
<p class="fancy">nota3</p>
<p id="serious"> nota de id</p>

my css:


body:nth-child(4): {

Instructions says:
Add a third paragraph to the HTML document. On the CSS tab, use nth-child to give it a font size of 26px. Remember: your paragraph is the third paragraph, but the fourth CHILD of body. The h3 counts as the first child!

My Error is: Oops, try again! Did you give your third paragraph a font-size of 26px? It looks like it's currently undefined.

Anyone tell me what im missing here ? i tryed a lot of combinations. i tryed with and without space between body and :
i tryed p as a selector but didin't work too. By the way Here is the Hint: That means you'll need to use nth-child(4) to select your paragraph on the CSS tab.

If you're getting strange numbers for your font-size, type Ctrl-0 or Cmd-0 to reset your zoom!

Make sure to leave a space between body :nth-child. If you don't have a space it means "find the body tag that is an nth-child". If you have a space it means "find the nth-child of the body tag".

I almot copy paste it but still not working. Any advise ?

0 votes


You need to make each h3 and p its own line, don't nest anything.

281 points
Submitted by
Cody West
about 2 years ago

0 votes


For some reason it looks for a space between body and :nth-child.

150 points
Submitted by
over 1 year ago