Forum Moderators: open

Message Too Old, No Replies

text-decoration in <a> tag -- removing the underline

         

noemontoya

2:20 am on Jan 27, 2004 (gmt 0)

10+ Year Member



How do I take off the underline in a <a> tag in html

D_Blackwell

2:35 am on Jan 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Add a bit of CSS in the <head>
a {
text-decoration: none;
}

or inline
<a style="text-decoration: none;">
****
</a>

choster

5:32 am on Jan 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Depending on how your CSS is set up, you may need to add definitions for all the states of <a> you may encounter:

a:link, a:visited, a:hover, a:focus, a:active {text-decoration: none}

eWhisper

3:56 pm on Jan 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



When does a link qualify as a:focus in terms of css?

DrDoc

4:08 pm on Jan 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



When you tab to the link...
And, as far as IE goes, if you follow a link and then click the back button -- the link you clicked still has focus.