Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Foundations Advanced Selectors Pseudo-Classes: :nth-child

tamirg
tamirg
6,201 Points

Challenge 4 keeps showing an error for 30px which I have correctly input. I even restarted the challenge??

Any suggestions? I checked w/the forum and still can't move past this without completing my challenge.

4 Answers

tamirg
tamirg
6,201 Points

li:nth-child(even) { color: white; background-color: black; }

li:nth-child(3) { background: #FF6347; }

li:nth-child(-n+4) { font-weight: bold; }

li:nth-child(-n+3) { font-size: 30px; }

Jeremy Hayden
Jeremy Hayden
1,740 Points

Pls show your code so we can compare it.

Hi Tami,

It appears that you have not correctly input.

Jeff

li:nth-last-child(-n+3) {
    font-size: 30px;
}
tamirg
tamirg
6,201 Points

After looking at it over and over I finally realized what I was missing. Thank you for your help!