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 trialnick88p
5,716 PointsHover problem
This is probably an obvious one ... :)
I need to add a hover state for navigation links that changes the text color to the value #32673f Why is my answer incorrect?
nav a: hover { color: #32673f; }
Thanks for your help. Nick
2 Answers
rydavim
18,814 PointsThe hover part is :hover, so does it work if you remove the space between the a: and hover?
EDIT - to clarify, the colon ( : ) is 'attached' to the hover selector, not the element you're applying it to.
nav a:hover { color: #32673f; }
nick88p
5,716 PointsYes. That worked! I thought spaces didn't matter in html and CSS. Guess I was wrong. Thanks for your help.
Kieran Gibbons
17,434 PointsKieran Gibbons
17,434 PointsTry removing the space between a: and hover.