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 trialBee Priola
3,922 Points#hover html I'm trying to add hover on nav a. I don't know what I made mistake.
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; } nav a: hover{ color: #32673f; }
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;
}
nav a: hover{
color: #32673f;
}
1 Answer
Ash Laidlaw
2,795 PointsYou have to place the hover directly next the the colon without any spacing. Try "nav a:hover {". Also, just for future reference, it's a good idea to space all of your code evenly. For example, above the hover selector, you have "nav a{". Instead, write "nav a {" for cleaning code. Hope that helps!
Bee Priola
3,922 PointsBee Priola
3,922 PointsAsh
Thank you for your advice, it's work :)