image link surrounded by blue?

Hi there,
I have just put in a beautiful image gif for link and it is surrounded by  blue. This is because it is a link. Can anyone tell me how to get rid of this.

Cheers in advance
Will
williery10Asked:
Who is Participating?
 
daleoranCommented:
In the <img> tag put border="0"

Michael
0
 
mrh30Commented:
Alternatively, get rid of the anchor tags round the image and add some event handlers to the image:

<img src="..." onmouseover="this.style.cursor='pointer';" onclick="document.location.href='[Link Address]';">
0
 
williery10Author Commented:
Thats great, wouldn't have guessed that
Cheers
Williery
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
john-formbyCommented:
If you use CSS you could add the following and you would not have to define border="0" for every image in your HTML.

img      {
      border:0;
      }

John.
0
 
DaydreamsCommented:
Put this between the <head> and the </head> tags:

<style type="text/css">
.noborder { border: none;}
</style>

Then in the body, you can put this:

<a href="somewhere"><img src="myimage.gif" class="noborder"></a>


Your image link will then have no blue border.
0
 
ZontarCommented:
>  Alternatively, get rid of the anchor tags round the image and add some event handlers to the image

This is silly. There's absolutely no reason to do this, and you make the link unusable by browsers that don't support JS.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.