BehnUm
BehnUm

Reputation: 141

Unwanted (img) side padding in IE

The problem only affects IE (Mine's 9) and as it's shown there are unwanted paddings on each side of the img tag.

Here's the CSS:

.imgclass {
    position:relative;
    top: 10px;
    left: 60px;
    border: 1px solid #666;
    box-shadow: #666666 0px 0px 3px;    
    border-radius: 5px;
    opacity: 0.9;
}

And so far I've tried img>padding 0& img>display>block & img>vertical-align.

Screenshot: https://i.sstatic.net/u2K4E.png

Thanks in advance

Upvotes: 0

Views: 131

Answers (2)

foxybagga
foxybagga

Reputation: 4214

try adding the below to your imgclass in CSS

filter:alpha(opacity=90);
padding: 0;

and also check for padding in parent element

Upvotes: 1

Silvertiger
Silvertiger

Reputation: 1680

you can adde specifically that padding = 0

padding: 0;

also it would be good to know what class/attributes are applied to the div/element containing the image as if it is larger then padding may not be the issue? perhaps specify a specific width and height if you can to prevent css guessing.

Upvotes: 0

Related Questions