Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: CSS issues


Message #1 by "Luke Opray" <lukeopray@y...> on Tue, 17 Apr 2001 10:19:19
Hi Marc and Luke,

Take a look at the following address:

http://www.w3.org/TR/REC-CSS2/selector.html#dynamic-pseudo-classes

This is the explanation Marc was talking about.

Imar


At 10:41 AM 4/17/2001 -0400, you wrote:
>At 4/17/2001 10:19 AM, you wrote:
>>I have a site formatted mainly using Cascading Style Sheets.
>>The problem is in the Navigation bar where I find the 'a:hover' attributes
>>are overwritten by the 'a:visited' attributes once the link has been
>>visited.
>
>Luke,
>This probably has something to do with the order you listed them in your 
>CSS file.
>It should be
>A:link
>A:visited
>A:hover
>
>If visited is after hover, it overrides it. There's an explanation for 
>this somewhere in the W3C spec, but I can't remember where.
>
>hth.
>-marc


  Return to Index