Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

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

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