PDA

View Full Version : Hyperlink underline



SoulReaver
October 16th, 2001, 16:28
Hey all,

How do I get rid the underline of a hyperlink? On my site the underlining on the links look crappy. Take a look for yourself (the link is in my sig).

Bruce
October 16th, 2001, 16:31
<style>
A:visited {text-decoration: none;}
A:hover {text-decoration: none;}
A:link {text-decoration: none;}
A:active {text-decoration: none;}
</style>

SoulReaver
October 16th, 2001, 16:37
Thx for the help. 1 more question where do I input the code, header or body?

Bruce
October 16th, 2001, 16:37
head

trenzterra
October 17th, 2001, 06:28
Originally posted by Phrozen
head I put my code in the body section, but it works too. May I know whats happening?

Dusty
October 17th, 2001, 11:19
I put my code in the body section, but it works too. May I know whats happening?It doesn't really matter where you put it, it's just more proper to put it in the head.

keith
October 17th, 2001, 16:15
actually, if you want all your links minus the underline [active, visited, etc...], just use this:
<style>
a {text-decoration:none}
</style>

-tuw-
November 1st, 2001, 07:20
<style>
a { text-decoration: none }
a:hover { text-decoration: underline }
</style>

this one works with IE but not in NS < 6.xx

JdS
November 7th, 2001, 15:32
my experience is that the order in which u write the style is important... i.e.

1. a:link.class
2. a:visited.class
3. a:hover.class
4. a:active.class

if u don't stick to this order, the links in MSIE will be buggy especially when using 'class'