You didn't say whether the class was attached to the href or if the href was
within a class.

Class attached to href

a.logo:link{}
a.logo:visited{}
a.logo:hover{}
a.logo:active{}

href within a class
logo :link{}
logo :visited{}
logo :hover{}
logo :active{}

Always go Link, Visited, Hover Active (Love Ha!)  when defining link pseudo
classes.  It has to do with specificity and how you want them to work.

You don't need a with the pseudo classes unless you are attaching them to a
class.  Those pseudo classes only work on <a> elements with href anyways.  

Hope This Helps

Sandy Clark

-----Original Message-----
From: Matthew Smith [mailto:[email protected]] 
Sent: Tuesday, March 30, 2010 1:19 AM
To: cf-community
Subject: css question


I have some text that is a particular class.  I want to format a hrefs of
that class a particular way.  How do I define the links of a particular
class?  How do I define the a's of logo?  double #'s are for inline css in
cfoutput.

Thanks!

.logo {
color: ##dddddd;
font-weight: bold;
 font-size: 25px;
font-family: Arial Black, Verdana, Arial, Helvetica, sans-serif;
 line-height: normal;
margin-top: 200px;
margin-bottom: 100px;
 line-height:200%;
}
a:link {
color: ##ffffff;
}
a:hover {
color: ###request.randomcolor#;
text-decoration: none;
}
a:visited {
color: ###request.randomcolor#;
}
a:visited:hover {
 color: ###request.randomcolor#;
text-decoration: none;
}




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:314339
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-community/unsubscribe.cfm

Reply via email to