...

View Full Version : different HOVER colors?



MrKnight1728
02-19-2004, 07: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?

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

.style1 {
a:hover {color:yellow}
}

.style2 {
a:hover {color:red}
}

</style>
</head>

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

freak
02-19-2004, 07:27 PM
.class1:link {
color: blue;
}

.class2:link {
color: red;
}


// freak

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum