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 Write Hexadecimal Colors

Cindy Lea
PLUS
Cindy Lea
Courses Plus Student 6,497 Points

Add a hover state for navigation links that changes the text color to the value #32673f. a.hover {color:#32673f} wrong

I put in:

a.hover{ color: #32673f; }

was wrong on quiz.

css/main.css
a {
  text-decoration: none;
}

#wrapper {
  max-width: 940px;
  margin: 0 auto;
}

#logo {
  text-align: center;
  margin: 0;
}

h1, h2 {
  color: #fff;
}
p {
  color: #000;
}

nav a {
 color: #fff; 
}

If I remember that exercise correctly, you may are missing the nav part. I think it was something like this:

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

Also, try using a:hover and NOT a.hover

Good luck!

Cindy Lea
Cindy Lea
Courses Plus Student 6,497 Points

Thank you. In the example they used a dot, but when this property is by itself you use colon? I went to a website & saw it was a colon too. Great response time!

2 Answers

Try this:

a {
  text-decoration: none;
}

#wrapper {
  max-width: 940px;
  margin: 0 auto;
}

#logo {
  text-align: center;
  margin: 0;
}
h1{
 color: #fff; 
}
h2{
  color: #fff; 
}
p{
  color: #000; 
}
nav a{ 
  color: #fff;
}
nav a:hover{
 color: #32673f; 
}
Cindy Lea
Cindy Lea
Courses Plus Student 6,497 Points

Thank you. The : was the key to getting it right.

Steven Parker
Steven Parker
231,248 Points

Remember that a period (.) in the selector identifies a class. A colon (:) indicates a pseudo-class.

Eliana's suggested answer is correct.

(To Eliana: You should post as answers not comments).

Ooh... thanks! :D