Solved

Blue boxes around my linked pictures

Posted on 2009-07-03
6
235 Views
Last Modified: 2013-11-19
On some of my images that I use as links a blue border is created around the image. How do I remove this? What is causing this?

An example is the Play Football logo at the bottom of  this page:

http://www.ohioflagfootball.com/index.asp

Thanks.
0
Comment
Question by:elliottbenzle
6 Comments
 
LVL 6

Accepted Solution

by:
Tempelman earned 500 total points
ID: 24770945
Add border="0" to the hyperlink.... By default HTML will create that ugly blue border when you use a picture as a URL ;).
0
 
LVL 13

Expert Comment

by:Murali Murugesan
ID: 24770995
To add on to previous experts comments,

write the css for img and anchor in a generic fashion to remove the borders. Add below to ur application CSS file.

a{
    border:0;
}

img{
  border:0;
}


In case of altering border for certain images .. you can use css class


.imgNoBorder{
  border:0;
}

.imgBorder{
  border:2px;
}

<img src="a.jpg' class="imgNoBorder"/>

<img src="b.jpg' class="imgBorder"/>

-Murali*


-Murali*
0
 
LVL 13

Expert Comment

by:Murali Murugesan
ID: 24771005
Oops missed ur fix part.To fix the image border that  you mentioned you need to add border="0" for img tag. Below would fix ur current problem

<img height="152" width="250" src="images/widget_play_football_250x152.gif" border="0"/>

-Murali*
0
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 
LVL 1

Expert Comment

by:ibs06t
ID: 24771290
when ever we give hyperlink link to image tag that border will appear
if u need to remove border to entire website

img
{
border:0px;
}

otherwise  u want remove a specific image
<img src="images/Newgif" alt="New Image" style="border:0px;" />

img
{
border:0px;
}
 
<img src="images/Newgif" alt="New Image" style="border:0px;" />

Open in new window

0
 
LVL 15

Expert Comment

by:deepaknet
ID: 24771710
Just append border=0 for your img tag.

Whenever an image is made to serve as a hyperlink, this happens.
0
 
LVL 4

Author Closing Comment

by:elliottbenzle
ID: 31599498
Thanks.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
div to fit another div 8 28
Mouse event to control image and transparency. 4 35
100% tall div not scrollable on iPhone 3 20
Copying table data to one another 15 31
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…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
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)

828 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