Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to remove blue border around links in IE9?

I'm working on this site: http://amberdreams.com

This is a pretty simple site, and I've been using netrenderer.com to make sure that all the pages work in Internet Explorer.

Despite my best efforts, I have not been able to remove the blue border around the facebook and twitter links on the home page for this site when viewing it with Internet Explorer 9.

img {border: none; }
a img {border: 0px; }

I've tried variations of the code above, and it successfully removes the blue border for every version of IE except 9. Any ideas?

like image 712
user1341808 Avatar asked Apr 23 '12 17:04

user1341808


People also ask

How do I remove the blue border around image links?

For removing this border you should set border to none.

How do I get rid of the border on Internet Explorer?

add style="border: none;" to whatever creates the border or create a css with this attribute. This was downvoted.


2 Answers

Try this in your CSS, worked for me.

img {text-decoration: none; border: 0px}
like image 101
Andy Avatar answered Oct 15 '22 21:10

Andy


Try the following instead in your css:

border-style:none;

That should remove your border issue.

like image 24
tajhamille Avatar answered Oct 15 '22 21:10

tajhamille