Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Hexadecimal Colors - Challenge 3/4


I'm having a tough time conceptualizing what is asked of me in this challenge. Maybe an extra set of eyes can elaborate on what I'm doing wrong. The direction states to:

"Set the color of anchor elements inside the nav element to white using a hexadecimal value."

Thus far I've tried using:

1) nav a, { color: #fff; }

2) nav a.selected, { color: #fff; }

Any thoughts on the matter would be greatly appreciated.


4 Answers

I think that you're right on, but it looks like those commas after your selectors are causing syntax errors. Try removing them. CSS doesn't like trailing commas. :D

Jonathan Baker
Jonathan Baker
2,304 Points

Not sure if this is just your question formatting or not, but there shouldn't be a comma after the selector before the curly brace.

The following should work just fine.

nav a {
  color: #FFF;

Thanks, guys. Happy coding.

nav a{ color: #ffffff; }