Reputation: 24052
I have an image that has some white on the edges, and I want to change the background color of the div
that the image is contained in. Now when I do this, I can still see the little bit of white surrounding the image, and it looks terrible.
Is there a way I can change the background color of the image to whatever the background color of the div
is, and would this be the best way to do it? Or does it make more sense just to edit the extra white out of the image.
Upvotes: 0
Views: 172
Reputation: 10592
If the image has a transparent background then you can change the background color the same way you would a div.
Edit You may also want to check to make sure there is no padding, borders, ect. that would cause this issue to happen
Upvotes: 0