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 trialFurkatjon Ikramov
553 Pointsnow when i hover over the portfolio and about its not hovering (not changing the color) on the page
now when i hover over the portfolio and about its not hovering (not changing the color) on the page
Furkatjon Ikramov
553 Pointsnav a, nav a:visited { color:#fff; } nav a.selected, a:hover { color: #32673f; }
2 Answers
YASH NAIR
3,463 Pointsfor it to hover you have to write nav a:hover plus the u made a typing error in in the nav a.selected as it should be nav a:selected
Orlando Benitez
1,426 PointsMy code is as follows and I have the same issue:
/* nav links */ nav a, nav a:visited { color: #fff; }
/* selected nav link color */ nav a: .selected, nav a:hover { color: #32673f; }
Orlando Benitez
1,426 PointsI fixed it using the following code:
/* nav links */ nav a, nav a:visited { color: #fff; }
/* selected nav link color */ nav a.selected, nav a:hover { color: #32673f; }
Changed nav a: .selected to nav a.selected under the /* selected nav link color */ section
Julian Gutierrez
19,201 PointsJulian Gutierrez
19,201 PointsPlease post your code.