Click to See Complete Forum and Search --> : URL link question
bhatijay
01-03-2003, 03:03 PM
Hi all,
How do I NOT have the underline on a text link? Also I would like to change the colour of this text on mouse over. Exg. From colour Blue to Red.
Thank you for your time.
BJ
khalidali63
01-03-2003, 03:09 PM
use the CSS for nchor tags
a:hover{
text-decoration:none;
}
will remove the underline
and at same place u can assign any other color
Khalid
Charles
01-03-2003, 03:12 PM
A:link { color: red; text-decoration: none } /* unvisited links */
A:visited { color: blue; text-decoration: none } /* visited links */
A:hover { color: yellow; text-decoration: none } /* user hovers */
A:active { color: lime; text-decoration: none } /* active links */From the CSS Level 2 Specification, http://www.w3.org/TR/REC-CSS2/selector.html#link-pseudo-classes
Note that the A:hover must be placed after the A:link and A:visited rules, since otherwise the cascading rules will hide the 'color' property of the A:hover rule. Similarly, because A:active is placed after A:hover, the active color (lime) will apply when the user both activates and hovers over the A element.
bhatijay
01-03-2003, 04:22 PM
Thanks guys!
BJ