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

Reuben Miranda
Reuben Miranda
3,054 Points

Why am I getting this wrong?

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

I am sure this is correct but can't pass the challenge for some reason.

2 Answers

Hi,

You need to use # instead of $ to mark the start of a hex value. For example:

#element {
    background-color: #FF6347;
}

Hope that helps!

Reuben Miranda
Reuben Miranda
3,054 Points

You're absolutely right! Thank you so much!