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


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; }