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 trialOliver Sewell
16,425 Pointsred highlight - nav visited and nav hover doesnt work
the links havnt changed to #fff and the hover has stopped working please can someone help the nav a, nav a:visited is red
/* link s */ a { color: #6ab47b;
/* nav link */ nav a, nav a:visited { color: #fff; }
/* selected nav link */ nav a.selected, nav a:hover{ color: #32673f; }
4 Answers
Brandon Barrette
20,485 PointsLook at your first CSS for links:
a { color: #6ab47b;
You are missing the closing }. It should be this:
a {
color: #6ab47b;
}
Oliver Sewell
16,425 PointsThankyou! i cant believe i missed that , i also have another problem if you would be able to help
h1 { font-family 'Changa One', sans-serif; margin: 15px 0; font-size: 1.75 em; }
the sans-serif is in red and i dont think the font has changed
Brandon Barrette
20,485 PointsThe error is in the way you are formatting your CSS. Always:
selector {
property: value;
}
Notice you need a colon : between the property and value, and always a semi-colon ; after each value. There is an error in your h1 and that's why it's not changing the font.
Oliver Sewell
16,425 Pointsah i see so its h1 { font-family 'Changa One': sans-serif; }
thankyou the red has disappeared now
Brandon Barrette
20,485 PointsNo it should be:
h1 {
font-family: 'Changa One', sans-serif;
}
The property is font-family, the value is 'Changa One' or sans-serif. See here:
Oliver Sewell
16,425 Pointsoh yes i get it now , thankyou for the help dude