Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A little CSS help for text rollovers? 1

Status
Not open for further replies.

THE4MAN

Technical User
Joined
Mar 17, 2002
Messages
73
Location
US
Well I managed to get the pesky hyperlink underline to disappear with CSS but I'd like to also have my text change colors upon mouse over and I haven't been able to get A:hover to do the trick.

An obvious newbie move would be to insert it like this:
<STYLE TYPE=&quot;text/css&quot;>
<!--
A:link { text-decoration: none }
A:active { text-decoration: none }
A:visited { text-decoration: none }
A:hover { text-decoration: #ff0000 }
-->
</STYLE>

But this didn't get it. I don't know if I am missing another element or if there is some kind of conflict or if I am using the wrong code altogether to achieve the rollover but I am confident that one of you pros can get me straightened out!

Thanks in advance for any help fellas!

Dave Fore
 
Thanks a lot for the help.

I tried the above suggestion but had no luck. Maybe it would be easier for someone to look at the code on the page itself.


I appreciate all the help you guys offer on this list.

Dave Fore
 
on a:hover pick your text and color....then make sure you have none checked where it has underline and what not
i had this problem to and this solved it
[afro]
 
a:link {color: #333333; text-decoration: underline}
a:visited {color: #666666; text-decoration: underline}
a:hover {color: #999933; text-decoration: none}
a:active {color: #333333; text-decoration: none}

color - declares color
text-decoration - declares underline, overline, line-through,none
size - declares size of font
style - decalres normal, oblique, italics
weight - bold, bolder, lighter
variant - small-caps, normal
case - capitalize, uppercase, lowercase, none Ranjan
fragments of dream, weave them together
 
Excellent!

Thanks so much for the help.

Dave Fore
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top