1 reply [Last post]
EetieD
Offline
newbie
Last seen: 17 years 42 weeks ago
Timezone: GMT+1
Joined: 2004-09-12
Posts: 1
Points: 0

Hello,

I would like to use the possibility that the hyperlinks will be coloured after your mouse is on it, but different from each hyperlink.

I know you can use this:
A:link {color: #cccccc; }
A:visited {color: #cccccc; }
A:hover {color: #FF0000; }

This will make the link 'red' when the mouse is on the link. But I have another link, that should have the colour '#ffff00' when the mouse is over. How can I do this?

I hope someone can help. Thanks!

TimeBandit
Offline
Enthusiast
Maryland, USA
Last seen: 17 years 44 weeks ago
Maryland, USA
Joined: 2004-09-02
Posts: 112
Points: 0

link coloured when mouse is over..

something like this, depending on your situation:

<a href="#">link 1</a>
<a href="#" class="color2">link 2</a>

A:link,
A:visited {color: #cccccc; }
A:hover {color: #FF0000; }
A:active {color: #cccccc; }

A.color2:hover {color: #FFFF00; }