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 trialmichela parrillo
416 PointsI 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
Jason Anello
Courses Plus Student 94,610 PointsHi 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
Michael Caveney
50,144 PointsTake another look at your code. Is there a conflict in there? Perhaps between the nav:a visited and something else?
michela parrillo
416 Pointsthanks michael
Will Mason
1,635 PointsI'm having the same issue, but don't really see what the problem is. Can you please elaborate further?
Michael Caveney
50,144 PointsWill, which issue specifically, the lack of color change? Could you paste an example of your code here?
Will Mason
1,635 PointsI actually fixed it, for some reason it was just loading a cached version of the preview
michela parrillo
416 Pointsmine was a problem of space between nav a:hover
michela parrillo
416 Pointsmichela parrillo
416 Pointsthanks jason