Welcome to the Treehouse Community
Looking to learn something new?
Ashot Hakobyan452 Points
Why my selected anchor doesn't change its color when it is in a state of being selected?
Hello friends, can anyone indicate on my mistake because I can't find the problem why it is still white. I select Portfolio but it is still white, not green as it is in the video. Thanks a lot for your time. P.S. Below are my html and css codes.
Adam Sumner36,695 Points
Your CSS shows that the link text should display green both on on hover and if the class 'selected' is apply to it.
Therefore for the home page your navigation should look like this:
<nav> <ul> <li><a class="selected" href="index.html">Portfolio</a></li> <li><a href="about.html">About</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav>