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

HTML How to Make a Website Customizing Colors and Fonts Use Classes in CSS

Header not changing color when visited or hovered over, what did I do wrong?

Snapshot of code: https://w.trhou.se/yrfbgbho2w

2 Answers

Ste Royle
Ste Royle
9,538 Points

Hi Jay,

You have an extra colon in your css on line 38 that is causing the problem.

Try using the following:

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

Yup, I realized that after I posted this. Thanks for the help though!

Mine also doesn't change when hovered over https://w.trhou.se/f8erjg3o6t