elliottbenzle
asked on
Blue boxes around my linked pictures
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.
An example is the Play Football logo at the bottom of this page:
http://www.ohioflagfootball.com/index.asp
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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_fo otball_250 x152.gif" border="0"/>
-Murali*
<img height="152" width="250" src="images/widget_play_fo
-Murali*
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;" />
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;" />
Just append border=0 for your img tag.
Whenever an image is made to serve as a hyperlink, this happens.
Whenever an image is made to serve as a hyperlink, this happens.
ASKER
Thanks.
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*