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

HTML How to Make a Website Customizing Colors and Fonts Use Color in CSS

Christian Pelaez-Espinosa
Christian Pelaez-Espinosa
1,316 Points

Nav text not changing to white

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

not working

4 Answers

Hi,

You have a typo in your code. It's "visited" not "vistied" ;)

Kireeti K
Kireeti K
9,675 Points

Nice Observation

Kireeti K
Kireeti K
9,675 Points

Hello Christian, Is anchor tag inside <nav> element?

No problem, happens to all of us :)

Jason Gerlach
Jason Gerlach
4,415 Points

I am having a similar problem but mine is just not changing

nav a, nav a: visited { color:#fff; } is my css i checked my html and it is

<nav> <ul> <li><a href="index.html">Portfolio</a></li> <li><a href= "about.html">About</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav> please tell me if this looks wrong or if i must look somewhere else to solve the problem

Alistair Jenkins
Alistair Jenkins
16,761 Points

Hi Jason.

I had the same problem. Have you tried deleting the space between the colon and 'visited'? This worked for me. I guess this is how pseudo-classes are parsed.

I hope this helps! Alistair