View Full Version : link hover help


Willowstar
06-26-2003, 08:30 PM
I am very new to css and still don't really understand it but what I'm trying to do is have links that are not underlined, the same color as the main text and change color when the cursor is over them (hover).
This is what the code looks like right now:
<style type="text/css">a.linx:link, a.linx:visited, a.linx:hover, a.linx:active{text-decoration: none;}</style>
This makes it the right color without the underline but no matter what I try I can't seem to make hover work. What needs to be changed?

THANKS!

fruitcake
06-26-2003, 08:46 PM
Try this:

<style type="text/css">
a:link { text-decoration: none }
a:visited { text-decoration: none }
a:active { text-decoration: none }
a:hover { text-decoration: none; color: #FFFFFF }
</style>

Willowstar
06-26-2003, 08:57 PM
hmmm...didn't work. But thanks for the help. I tried something simalar earlier.

zangerbanger
06-26-2003, 09:11 PM
<style type="text/css">
<!--
A:link {color:#}
A:visited {color:#}
A:active {color:#}
A:hover {color:#; text-decoration:none}
-->
</style>

See if that works :) .

pb&j
06-27-2003, 06:49 AM
change it to this...

<style type="text/css">
a.linx:link, a.linx:visited, a.linx:active {text-decoration: none;}
a.linx:hover {text-decoration: none; color:#ff0000;}
</style>

adjust the color code to your desired effect.

Willowstar
06-27-2003, 09:43 PM
I really don't understand what I could be doing wrong, but nothing seems to be working

kicker91
06-27-2003, 10:42 PM
are you putting it between the <head> and </head>?

pb&j
06-28-2003, 08:49 AM
can you post a link to the page in question please?