Solved

image link surrounded by blue?

Posted on 2003-12-04
6
728 Views
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
Will
0
Comment
Question by:williery10
6 Comments
 
LVL 10

Accepted Solution

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

Michael
0
 
LVL 3

Expert Comment

by:mrh30
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]';">
0
 

Author Comment

by:williery10
ID: 9873571
Thats great, wouldn't have guessed that
Cheers
Williery
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 14

Expert Comment

by:john-formby
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      {
      border:0;
      }

John.
0
 
LVL 15

Expert Comment

by:Daydreams
ID: 9876470
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
 
LVL 11

Expert Comment

by:Zontar
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.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

810 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