This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Awesomez798
over 8 years

not sure what i did wrong

my error message- Oops, try again. Did you give your third paragraph a font-size of 26px? It looks like it’s currently 16px.

my css code-

.fancy { font-family: cursive; color: violet; } #serious { font-family: Courier; color: #8C8C8C }

p: nth-child(4) { font-size: 26px; }

what did i do wrong?

Answer 55fa806d95e37881ec000728

0 votes

Permalink

you can either use p:nth-child(4) or body :nth-child(4), but you can’t use p: nth-child(4), the spacing is really important here.

If you use p:nth-child(4) it styles the 4th child of their parent, if you use body :nth-child(4) it selects the 4th child inside body. p: nth-child(4) just doesn’t work.

Can i see your html code if it is still not working? check here how to format your code. Your html code is currently not visible. if you update your question please leave a comment so i get a notification.

points
Submitted by stetim94
over 8 years