image link surrounded by blue?

Posted on 2003-12-04
Last Modified: 2010-04-09
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
Question by:williery10
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 10

Accepted Solution

daleoran earned 25 total points
ID: 9873504
In the <img> tag put border="0"


Expert Comment

ID: 9873551
Alternatively, get rid of the anchor tags round the image and add some event handlers to the image:

<img src="..." onmouseover="'pointer';" onclick="document.location.href='[Link Address]';">

Author Comment

ID: 9873571
Thats great, wouldn't have guessed that
Independent Software Vendors: 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!

LVL 14

Expert Comment

ID: 9876376
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      {

LVL 15

Expert Comment

ID: 9876470
Put this between the <head> and the </head> tags:

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

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.
LVL 11

Expert Comment

ID: 9879030
>  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.

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question