Previous Message
Next Message

Re: [css-d] visited link troubles

Sent by Liorean on 26 February 2002 17:05


At 16:52 2002-02-26 -0500, Eric A. Meyer wrote:
>At 16:36 -0500 2/26/02, shining monkey wrote:
>
>>I'm using css to make my menus, and I'm having a bit of trouble. The menu 
>>items only
>>change color if you haven't visited that page.  I have tried setting the 
>>a:visited property to be
>>identical to my a:link property, but still I have no luck.
>
>    You have to have the link styles in a certain order, or else some 
> rules end up overriding others.  The most widely recommended order is 
> link-visited-hover-active.  For a somewhat technical explanation of why, 
> see <http://www.meyerweb.com/eric/css/link-specificity.html>.

I'm wondering a bit how you should order them if you want to use a bit more 
advanced css.

How about :focus, :visited:hover, :visited:focus ?
// Liorean
Previous Message
Next Message

Message thread: