According to http://www.w3schools.com/css/css_pseudo_classes.asp,

Note: a:hover MUST come after a:link and a:visited in the CSS definition in 
order to be effective!!

Note: a:active MUST come after a:hover in the CSS definition in order to be 
effective!!

Note: Pseudo-class names are not case-sensitive.

here is the example they provide:

a:link {color: #FF0000}     /* unvisited link */
a:visited {color: #00FF00}  /* visited link */
a:hover {color: #FF00FF}   /* mouse over link */
a:active {color: #0000FF}   /* selected link */



hth

charlie hanlon


----- Original Message ----- 
From: "Claude Schneegans" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Friday, January 27, 2006 3:28 PM
Subject: OT about CSS


>I know this list is about CF, but I cannot find any populated group
> about CSS,
> and well... good developers are here anyway ;-)
>
> My question is: is it specified somewhere in the docs that pseudo styles
> for links
> should be given in any specific order, and why?
> In the code below, the link in the blue paragraph becomes red when the
> mouse passes over,
> but the A:hover spec is simply ignored if it is not the last one.
>
> <html>
> <head>
>    <title>Untitled</title>
> <STYLE>
> P.blue {color:blue}
> P.blue A:link {color:green}
> P.blue A:visited {color:green}
> P.blue A:hover {color:red}
> </STYLE>
> </head>
>
> <body>
> <P>Paragraph with a <A HREF="#">link</A></P>
> <P CLASS="blue">Blue Paragraph with a <A HREF="#">link</A></P>
> </body>
> </html>
>
>
> -- 
> _______________________________________
> REUSE CODE! Use custom tags;
> See http://www.contentbox.com/claude/customtags/tagstore.cfm
> (Please send any spam to this address: [EMAIL PROTECTED])
> Thanks.
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230622
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to