View Single Post
Old 10-20-2010, 04:14 PM  
whorehole
Confirmed User
 
Join Date: Jan 2004
Posts: 299
A stupid CSS question- anybody know how?

This is something I've never figured out, I've researched it, but never found an answer- it may not even be possible, but I figured somebody on here would know if it is.


I've got a page all setup with tons of CSS.

but say I have one little bit of text that I want to make a color, and ALSO be hyperlinked, and have a seperate hovercolor.

I want to just code it inline using a SPAN tag, and not write a giant bunch of CSS code just for this one word.

So the text link should be white, and when hovered over, it would turn black.


This will turn the text white, etc:


<a href="http://www.myurl.com" ><span style="font-family: arial; font-weight: bold; font-size: 12px; color: white; ">CLICK HERE</span></a>


But can I define a hover color in that span tag?


I've never found any code that would do it..

can it be done?


Thanks for any help!
whorehole is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote