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 trialTage Smith
2,997 Pointsnav a, nav a; visited;
When I applied this last line of code, the navigation links went back to the background color. Why is that?
2 Answers
Skirmantė Rudaviciute
4,566 Pointstry this! you have a semicolon between the a and the visited. It should work with a colon!
nav a, nav a:visited {
color: #fff;
}
Luke Glazebrook
13,564 PointsHi Tage!
Please could you provide your code for me to take a look at?
Tage Smith
2,997 Pointsa { text-decoration: none; }
wrapper {
max-width: 940px; margin: 0 auto; padding: 0 5%; }
logo {
text-align: center; margin: }
a { color: #e2b47b; }
header { background: #e2b47b; border-color: #a3b67b; }
h1, h2 { color: #fff; }
nav { background: #62b33b; }
nav a, nav a;visited { color: #fff; }
Tage Smith
2,997 PointsTage Smith
2,997 PointsThanks. I have a feeling I'm going to get hung up on the little things...