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:Code Challenge:Structural Psuedo-classes Bug - test passes with wrong answer

At step four, the challenge asks to select the last 3 items in the list and font-size equal 30px.

I mistakenly entered and passed with: li:nth-last-child(2n+1){font-size:30px;} which returned the last and every other li with 30 px, not the last three.

I believe the correct answer to pass the test req. should have been: li:nth-last-child(-n+3){...}

3 Answers

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Hi Remi Williams,

Thanks for catching that! I'm looking into it now. We'll also be replacing the first 3 stages of CSS Foundations with new ones very soon, so stay tuned. :)

I don't undrstand

Still the same - just had to use li:nth-last-child(2n+1){font-size:30px;}