Jump to content

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..........

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.