I'm trying to remove the image border in ie, but I get some strange behavior.
Here's my code:
img {border: none}
<img src="..." border="0" style="border: 0"/>
But it's still not working, and IE debugger shows me image border: medium
. And my div is larger by 10px per image.
add style="border: none;" to whatever creates the border or create a css with this attribute.
Adding border="0" to your img tag prevents that picture from having a border around the image. However, adding border="0" to every image would not only be time consuming but also increase the file size and download time. To prevent all images from having a border, create a CSS rule or file with the following code.
Go to Design > Page Borders. In the Borders and Shading box, on the Page Border tab, select the arrow next to Apply to and choose the page (or pages) you want to remove the border from. Under Setting, select None, and then select OK.
Try
img {
border-width: 0;
}
Remove border from image link:
a img
{
border:0px;
}
Works fine on IE
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With