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

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

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>

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?

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

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.

I will try that.

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

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

Thanks a mil Mr. Hamid.

No problem :)