PDA

View Full Version : Problem with links color


garfy
12-06-2005, 12:36 PM
hi

i have a website that has links on the top for navigations and the backgrond is green so they are nicely visible.

At the middle of the page i have the list of my other websites and links to them but they are not visible, bacause the background is plain white and the color of the links is white

it works on the top because the background is white.

i use hover in css yellow color

but is it possible to set 2 different color for hover because i do not want the yellow color for bottom links but blue instead

can someone help please

:blink:

davidj
12-06-2005, 01:09 PM
if you use css hover then all links will be effected no matter what background they are over

the best thing to do is to set a couple of css classes and assign each one to different links

example...

a:hover.example {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
text-decoration: none;
}

a:hover.example2 {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #445566;
text-decoration: none;
}
<a href="#" class="example">This is link1</a>
<a href="#" class="example2">This is link2</a>