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

Q2 on select the third list item only is incorrect despite the preview showing the right thing

In question two of the nth child task, the code I've entered gives the correct response in the preview but I'm still getting an 'incorrect 'message. I tried leaving the previous answer in there and just changing the background and that didn't get accepted either. Screenshot below: https://twitter.com/realperfectnose/status/352983410219827201 Any ideas?

6 Answers

Your code is perfect, but like they said "Create a new rule that selects the 3rd list item only. Set the background color to the HEX value FF6347" you're suppose to leave the previous CSS rule intact, and just create a new one instead of replacing it.

hope this helps! :)

Hahaha darned right it's perfect! Thanks Elliott, you hit the nail on the head. Cheers.

It's perfect, but I can't get a pass...????????? Can anyone help me with that? My code looks exactly like in the screenshot above....

Got it the # sign was missing.

Oh my gosh! I missed the # sign too, how funny.

Ha, pesky # had me puzzled for ages!?!

Ha, pesky # had me puzzled for ages!?!