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 Use Classes in CSS

I cannot use classes in CSS I cannot change color when I tab nav a it dosn't change nothing..

this is what I tab a{ color:#6ab46b; }

header{ background:#6ab46b; border-color:#599a68; }

h1, h2{ color:#fff; }

nav{ background: #599a68; }

nav a, nav a: visited; { color:#fff; }

nav a.selected, nav a: hover{ color: #32693f; }

but does not change the color..

3 Answers

Hi Michela,

You have spaces after the colon's in your pseudo classes. nav a: visited and nav a: hover

Should be nav a:visited and nav a:hover

thanks jason

Michael Caveney
Michael Caveney
50,144 Points

Take another look at your code. Is there a conflict in there? Perhaps between the nav:a visited and something else?

thanks michael

I'm having the same issue, but don't really see what the problem is. Can you please elaborate further?

Michael Caveney
Michael Caveney
50,144 Points

Will, which issue specifically, the lack of color change? Could you paste an example of your code here?

I actually fixed it, for some reason it was just loading a cached version of the preview

mine was a problem of space between nav a:hover