Jump to content

Unwanted borders on linked images in IE


chomedey

Recommended Posts

Hi there,

 

I've looked in the archives for something on this because I'm sure it's a common problem, but so far I've found nothing.

 

I have a bunch of linked images on my site, and I have specified in my css that all images should have a 1 pixel grey border.

 

img

{

border:1px solid grey;

}

 

a:link img {border:1px solid grey;}

a:visited img {border:1px solid grey;}

a:hover img {border:1px solid grey;}

a:active img {border:1px solid grey;}

 

This works fine in safari, firefox and chrome, but in IE it's putting these godawful default link color borders around them.

 

What can I do to get rid of them?  Any ideas?

 

Cheers.

 

Julian

Link to comment
https://forums.phpfreaks.com/topic/197894-unwanted-borders-on-linked-images-in-ie/
Share on other sites

  • 2 weeks later...

it seems that you need a solid grey border permanently for the image which is used as a link whether the link state is active, visited, hover so try putting the border in the image itself and set the property border=0, it will solve the problem for all the browsers and u can have border also gets displayed with the image..........

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.