when clicking one link they all change...

simbob

New Member
I always struggle with the 'visited' pseudo class, when clicking one link they all change to the visited state, how do i apply to one at a time?
 

canyouseeme

New Member
You have to set each link to a different visited style.

Code:
.styleOne a:visited {
  color:red;
}

.styleTwo a:visited {
  color:blue;
}

Code:
<a href="page.html" class="styleOne">Link One</a>
<a href="page.html" class="styleTwo">Link Two</a>
 
Top