Solved

image link surrounded by blue?

Posted on 2003-12-04
6
725 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Flexbox in CSS3 2 39
iframe detection of parent window scale 20 59
.php tree directory? 5 54
Objects on Same Line 2 15
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.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
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 …

948 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now