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 CSS Basics (2014) Basic Selectors Pseudo-Classes

a:link a:visited etc.. is there a way of resetting the colors to these links after they have been visited/clicked on

Its just a thought i've had because even if i shut down the wepage they still are in an active state when the page reloads

1 Answer

Sylvester Hofstra
Sylvester Hofstra
12,022 Points

As far as I know there is no way of resetting the colors with a specific property. Browsers will apply basic colors for links and visited links (and much more!). You could 'reset' the colors by declaring the same color for a visited link as the original link color:

a {
   color: red;
}

a:visited {
   color: red;
}