PDA

View Full Version : Question on links and CSS


keano
05-03-2006, 04:51 PM
On my web pages I want 2 different looks for links. Different colors/rollovers. It seems I can only create one CSS a:link to do this no optino for more?

Can someone tell me if there is a way?

Thanks

domedia
05-03-2006, 05:12 PM
6 posts below yours was same question:
http://www.dreamweaverclub.com/forum/viewtopic.php?t=2820

bkendall
05-03-2006, 05:12 PM
just create another clas and then use that to create the alink for example:

a {
color: #005FAE;
}
.ClassName {
font-size: 2em;
}
.ClassName a {
color: #FF0000;
}

bkendall
05-03-2006, 05:13 PM
opps you beat me to it domedia :)

keano
05-03-2006, 05:44 PM
Hi guys and thanks. got it to work. How come I can't get the link1 hover to work?
Thanks

see attached

keano
05-03-2006, 07:16 PM
I have got it to work but can't get the hover to work on a link.

I tried creating another page and had same problem.

chriskq
05-08-2006, 12:59 PM
refer to them by calling them from inside a div in ur css
as such for each state:
}
div#nav p {
text-align: center;
padding: 5px;
}
div#nav p a {
color: #000;
text-decoration: none;
font-weight: bold;
}
div#nav p a:hover {
color: #ec545b;
background: #FFF;
text-decoration: underline;
font-weight: bold;
padding: 0px 4px;
}
add borders and backgrounds for better looking results