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 How to Make a Website Customizing Colors and Fonts Write Hexadecimal Colors

Sharina V. Jones
Sharina V. Jones
11,459 Points

Styling Nav Link Challenge Task

The task is "Add a hover state for navigation links that changes the text color to the value #32673f." This is what I typed:

nav a.hover{ color: #32673f; }

How is this incorrect?

Sharina V. Jones
Sharina V. Jones
11,459 Points

And I figured it out.

It should have been nav a:hover{color: #32673f;}

Ah the joys of coding...

3 Answers

Alex Tasioulis
Alex Tasioulis
4,950 Points

Hi, you apply pseudoclasses with a colon instead of a dot. Like a:hover

That isn't working either for me.

here is what I am trying:

nav a { color: #fff; }

nav a:hover { color: 32673f; }

Does not work even after II retype it to make sure my spaces are right. What the @@&&#$^ heck! Anybody having the same problem. I'm sure i am doing it right.

Sharina V. Jones
Sharina V. Jones
11,459 Points

You need to add a # before the color in your pesudo-class value:

nav a:hover { color: #32673f; }