View Full Version : different HOVER colors?

02-19-2004, 08:20 PM
How can I make two different color hover links? For example I'm trying to make one link turn yellow when the user rolls over this link, and on the same page make other link turn red.
This does not work, what am I doing wrong?

<title>Help Me please!!</title>
<style type="text/css">

.style1 {
a:hover {color:yellow}

.style2 {
a:hover {color:red}


<p><a class="style1" href="page1.htm">page one</a></p>
<p><a class="style2" href="page2.htm">page two</a></p>

02-19-2004, 08:27 PM
.class1:link {
color: blue;

.class2:link {
color: red;

// freak

02-19-2004, 08:30 PM
WOW! That was simple! THANKS A LOT!!! You are the greatest!