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 trialRob B
11,677 PointsNav a: hover not working properly
I was told to style the hovered links with 32673f, but my code apparently is wrong. Here is my code:
nav a: hover { color: #32673f; }
What did I do wrong?
1 Answer
Jonathan Grieve
Treehouse Moderator 91,253 PointsHi Robert,
nav a:hover { color: #32673f; }
It looks like you just have a space between the the a and the :hover pseudo declaration. You have to write it as one selector or CSS won't recognise that you want to make a pseudo element selector. :-)
mamadou badiane
9,005 Pointsmamadou badiane
9,005 PointsHi @Jonathan Grieve you're a master of css3.
Jonathan Grieve
Treehouse Moderator 91,253 PointsJonathan Grieve
Treehouse Moderator 91,253 PointsThanks Mamadou :)