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 trial

CSS How to Make a Website Adding Pages to a Website Build the Contact Page

Denis Githaka
Denis Githaka
1,010 Points

I 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
Khaleel Hamid
5,258 Points

I 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
Khaleel Hamid
5,258 Points

Can 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
Denis Githaka
1,010 Points

Hmm, ok. I was avoiding that...the going through videos to find one line of css. I will try anyway. Thanks.

Khaleel Hamid
Khaleel Hamid
5,258 Points

Well 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
Denis Githaka
1,010 Points

What references do you have to this class in your customized css page?

Khaleel Hamid
Khaleel Hamid
5,258 Points

` nav a.selected, nav a:hover { /* Hover over navigation */ color: #32673f; } `

Denis Githaka
Denis Githaka
1,010 Points

Thanks a mil Mr. Hamid.