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


Problem with nth-child

Hi There

I am doing some CSS Foundation work and have become stuck on a code challenge

The question is

Create a new rule that selects the 3rd list item only. Set the background color to the HEX value FF6347.

To which I am using

/* Write your CSS below */

The first nth-child(even) is the answer from the previous and works fine. I just don't see where this is going wrong as it even makes the correct change in the preview.

Any help appreciated - the error I get is Bummer! Check the selector in your CSS.



DOHHHHH!!!!! Background colour

2 Answers

Guil Hernandez
Guil Hernandez
Treehouse Teacher

Yep. Glad you figured it out, Graham :)

No problem Guil and kudos to you and the team on a stella course - been writing CSS for about 4 years now and in the space of half a dozen videos have already learned (and dare I say used) some really nifty selectors.