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

Gustavo Santana
PLUS
Gustavo Santana
Courses Plus Student 4,267 Points

Lets play another round of whats wrong with the code!?

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

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

This 'pseudo class nth-child' challenge is the second out of the 4 needed to succeed stage 3's step 4 of advanced selectors in the css deep dive. It asks for you to make the 3rd Nth child have a background color of FF6347. When i do this very same thing on Sublime 2 it fails to give it a color.

Anyone else have this issue or is it just me?

UPDATE: While typing this up and attempting to troubleshoot, it occurred to me to search what the color should be. This color is supposed to be tomato. I put this in and it worked. Was this part of the plan or should this be fixed?

2 Answers

Elliott Frazier
PLUS
Elliott Frazier
Courses Plus Student 9,647 Points

You need to add a hashtag (#) before declaring a hex color value. but if your using predefined colors such as red, blue, seagreen, blanchedalmond, ect... you don't need to.

Example:

div{
  color: #f923de;
  background-color: lightsteelblue;
}
Gustavo Santana
PLUS
Gustavo Santana
Courses Plus Student 4,267 Points

HA! Thanks so much I love it how the small things are always the ones that make you really scratch your head. Completely forgot about the hashtag. Silly me. :)

I bow in thanks to you.