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 trialDenis Githaka
1,010 PointsI forgot to add the code in the class="selection" when Nick first did it. Someone please help me with that code. Thanks.
I am lost overtime he uses it!
6 Answers
Khaleel Hamid
5,258 PointsI went back and looked at my code this is what I found with selected in the index.html
<li><a href="index.html" class="selected">Portfolio</a></li>
contact.html
<li><a href="contact.html" class="selected">Contact</a></li>
about.html
<li><a href="about.html" class="selected">About</a></li>
Khaleel Hamid
5,258 PointsCan you post your code? And can't you just go and add that class, or go back in the video were he showed you how to do it?
Denis Githaka
1,010 PointsHmm, ok. I was avoiding that...the going through videos to find one line of css. I will try anyway. Thanks.
Khaleel Hamid
5,258 PointsWell you don't really have to. He goes through his file through his lesson, so you can catch it trough that, but it'd be better to go back, so you don't mess up anymore and have to start over.
Denis Githaka
1,010 PointsI will try that.
Denis Githaka
1,010 PointsWhat references do you have to this class in your customized css page?
Khaleel Hamid
5,258 Points`
nav a.selected, nav a:hover { /* Hover over navigation */
color: #32673f;
}
`
Denis Githaka
1,010 PointsThanks a mil Mr. Hamid.
Khaleel Hamid
5,258 PointsNo problem :)