View Full Version : rule that includes link color

04-27-2007, 02:06 PM
This is a rule on a style sheet -- pretty standard. Is there a way I can included link colors within this rule so I can have more that one link color on a page? I want all these attributes to apply and be able to have a seperate link color.

I did several searches on this site and elswhere and couldn't find anything that would allow multiple attributes including links.

.Side_Links {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: bold;
color: #FFFFFF;
padding-left: 8px;
vertical-align: top;
top: 0px;
line-height: 18px;

04-27-2007, 03:30 PM
Yes, but we need to see your HTML in order to advice on a style that would be applied to it.

04-27-2007, 04:05 PM
Is it best to have a link or paste in all the code?



04-27-2007, 05:18 PM
Specify the links inside .Side_links like this in your CSS:

.Side_Links a:link {color: black;}
.Side_Links a:visited {color: black;}
.Side_Links a:hover {color: red;}
.Side_Links a:active {color: black;}

04-27-2007, 07:01 PM
OK. I get it. That worked like a charm. I really do try to find an anwer before asking. The way I saw it presented made it seem much more complicated than that - buried in a 2 page tutorial on CSS links.


04-27-2007, 07:11 PM
specifying links like that can be tricky in the start, but once you get how it works, it's easy 8)