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

If I remove "nav a:visited" the link/text stays white. Even after I clicked it. So when do and don't you have to use it?

In the video it is said that you have to use "visited" to keep the links the same color. It's not used in h1 and h2. Those stay white. But even when I removed "nav a: vistited", the text stays white after I clicked it. Bit confused when you do have to use it

When I tried clearing cache as Andrew suggested, links still stay white even after I've clicked on them (this is after I erased the "nav a:visited" selector).

Should they be turning another color without "nav a:visited", or is something else keeping them white?

1 Answer

Andrew Fellenz
Andrew Fellenz
12,170 Points

Hey, after you remove the a:visited style from your css document, please clear your browsers cache. If you are in Chrome, that can be done by going to clear history and then checking the "cache" option. Information about visited links is stored in that, so even after you remove the style, the page may still hold that value.

Hope that helps!

Thanks Andrew