Sign in to follow this  
kbiro

[web] link underline

Recommended Posts

kbiro    139
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?

Share this post


Link to post
Share on other sites
Fuzztrek    572
try:

<a href="http://www.epochstar.com" style="text-decoration: none">big
hats</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.)

Share this post


Link to post
Share on other sites
Kalasjniekof    246
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this