Jump to content
  • Advertisement
Sign in to follow this  
kbiro

[web] link underline

This topic is 4801 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!