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 trialCindy Lea
Courses Plus Student 6,497 PointsAdd 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.
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;
}
Cindy Lea
Courses Plus Student 6,497 PointsThank 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
Jeremy Hill
29,567 PointsTry 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
Courses Plus Student 6,497 PointsThank you. The : was the key to getting it right.
Steven Parker
231,275 PointsRemember 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).
hamcrjside
4,599 PointsOoh... thanks! :D
hamcrjside
4,599 Pointshamcrjside
4,599 PointsIf 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!