• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 809
  • Last Modified:

How to disable the link's underline?

I want to disable the link's underline. Is it possible? Actually, I want to put a link on a image, but I don't want to have the underlink shown.
0
yuho
Asked:
yuho
1 Solution
 
rafisternCommented:
You are asking two separate questions here:

To disable the underline put

style="text-decoration:none;"

in the <a> tag of the link. To disable for all links on the page put

<style>
a {text-decoration:none;}
</style>

in the header. This style will be honored by IE3+ and NS4+ only.


To prevent the blue line around an image containing a link put

border=0

in the <img> tag.

If you have a problem with a small blue line appearing after the the image, then put the <a><img></a> tags all on one line.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now