[web] link underline

Started by
2 comments, last by Kalasjniekof 18 years, 9 months ago
hey everbody. Time for another stupid question... i've been using the following tags to create a link without an underline
 <a href="http://www.epochstar.com"><span style="text-decoration: none">big
hats</span></a> 
it works in internet explorer, but still shows an underline in netscape. How do I get it so it will show no underline in case?
Advertisement
try:

<a href="http://www.epochstar.com" style="text-decoration: none">bighats</a>


Most browsers apply the underline to the actual anchor element rather than the text node inside (which I think is invalid.. your example shouldn't even work in explorer.)
thanks [smile]
Don't forget to color links different from surrounding text if you remove the underline. It will only make it more difficult to locate it. Also, many sites use colored links with an underline that only appears when the mouse is on it.

This topic is closed to new replies.

Advertisement