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 trialSharina V. Jones
11,459 PointsStyling 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?
3 Answers
Alex Tasioulis
4,950 PointsHi, you apply pseudoclasses with a colon instead of a dot. Like a:hover
Devah Lucus
1,066 PointsThat isn't working either for me.
Sean Clipsham
1,664 Pointshere 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
11,459 PointsYou need to add a # before the color in your pesudo-class value:
nav a:hover { color: #32673f; }
Sharina V. Jones
11,459 PointsSharina V. Jones
11,459 PointsAnd I figured it out.
It should have been
nav a:hover{color: #32673f;}
Ah the joys of coding...