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 trialNathaniel Williams
3,005 Pointsnav a.selected glitch?
Is anyone else finding that the selected link does not change color as it should based on the code used in the video?
nav a.selected, nav a:hover {
color: #32673f;}
I even downloaded the project file and loaded the sample main.css file but it still does not work. Is it because of my browser (chrome on windows)?
George Cristian Manea
30,787 Pointspost your html between these your html
:)
2 Answers
Jason Anello
Courses Plus Student 94,610 PointsHi Nathaniel,
You're missing the "selected" class from your html.
<li><a href="index.html" class="selected">Portfolio</a></li>
For each of your pages you need the "selected" class to be with the link for that page.
Nathaniel Williams
3,005 PointsThat was it! Thank you so much for helping me out.
George Cristian Manea
30,787 PointsThis sort of issues don't come from the browser or the operating sistem. Could you paste the html also? Maybe the selected class is set on the li element not the anchor.
Nathaniel Williams
3,005 PointsNathaniel Williams
3,005 PointsThank you for helping! I definitely should have been looking at the html too...