image link surrounded by blue?

Posted on 2003-12-04
Medium Priority
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 100 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="this.style.cursor='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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

650 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