Re: Rollover text link in Dreamweaver

by "Tim Rivera" <lists(at)timrivera.com>

 Date:  Tue, 18 Jan 2005 21:33:25 -0500
 To:  <hwg-basics(at)hwg.org>,
"Janet Burgess" <burgessj(at)post.queensu.ca>
 References:  queensu
  todo: View Thread, Original
Hello Janet,

> set the rollover link color. It works fine until I click on the link
> then when I  go back to the same link the color doesn't change.

Your problem has to do with the order in which the rulesets are 
written. Because you have a second a:visited after the a:hover, the 
a:visited color overrules the a:hover (as well as the first 
a:visited.) The correct cascading order for pseudo-classes is:
:link
:visited
:focus
:hover
:active


Tim 

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA