A. Appleby
A. Appleby

Reputation: 469

firefox adding white border to rendered image

Firefox is adding a white border on the inside of my image (.png), but no other browsers is, and the border property in CSS is actually 0. It's the image itself that is being rendered with a white border... Any way to remove this?

Upvotes: 0

Views: 515

Answers (2)

kirisu
kirisu

Reputation: 1

I had the same issue. I wanted a 110x90px image and for that I was using a 560x460px image

with these css rules

.my-image 
{ 
    display: inline-block; 
    width: 110px; 
    height: 90px;
}

Turns out when i tried to use the same image but with the right dimensions it worked. White border was left on firefox.

Upvotes: 0

allnodcoms
allnodcoms

Reputation: 1262

Give it a class and set display: block;.

Upvotes: 1

Related Questions