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 Customizing Colors and Fonts Use Classes in CSS

hamza shaikh
hamza shaikh
5,875 Points

when i hover over the nav the color is not changing

ok so i apply the code

nav a.selected, nav a:hover { color: #32673f; }

and the color should change to dark green right but its not and i also one more problem that whenever i click on the about and contact it does NOT give me an error its just stays the same when i haven't made the about or contact page. i think it is related to the reason why color is not changing. help is appreciated

Can you please post your html and css so I can take a closer look?

Don't forgot to use the Markdown Cheatsheet to format the code for easier reading.

Thanks!

hamza shaikh
hamza shaikh
5,875 Points

for some reason its working just fine now, idk why it didn't than but its working now weird? i didn't change a thing. thank you though

1 Answer

Stephen Roberts
Stephen Roberts
8,580 Points

Your missing semi colons in between nav a:selected it should be

nav a:selected, nav:hover {
 color: #32673f;
}