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

nth:child() selector... bug?

The first part went through just fine, I was able to select the even list items (li), but the second part won't let me pass. Here is the question:

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

And here is my CSS...

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

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

3 Answers

Nevermind, I'm a noob... forgot to put the # in front of the hex number. Is there a delete button? lol

branco design
branco design
5,120 Points
li:nth-child(even) {
    color: white;
    background-color: black;
}

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

Hi Teamtreehouse, In this question you should say "Add .." then it wold be clear .. maybe? Br, M.