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

CSS How to Make a Website Customizing Colors and Fonts Organize CSS with Comments

Oliver Sewell
Oliver Sewell
14,737 Points

red 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
Brandon Barrette
20,485 Points

Look at your first CSS for links:

a { color: #6ab47b;

You are missing the closing }. It should be this:

a { 
  color: #6ab47b;
}
Oliver Sewell
Oliver Sewell
14,737 Points

Thankyou! 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
Brandon Barrette
20,485 Points

The 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
Oliver Sewell
14,737 Points

ah i see so its h1 { font-family 'Changa One': sans-serif; }

thankyou the red has disappeared now

Brandon Barrette
Brandon Barrette
20,485 Points

No 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:

http://www.w3schools.com/cssref/pr_font_font-family.asp

Oliver Sewell
Oliver Sewell
14,737 Points

oh yes i get it now , thankyou for the help dude