Monday, October 17, 2011

White borders on transparent images


For some time now, all my transparent images have been having white borders. I tired every CSS attribute I could find, but none of them worked.

I then came accross a post of someone who had the exact same problem. I was not crazy, this happened to other people!

Strangely enough, it looks like the solution is to not use an imgtag, but a div when you specify the source image in the CSS. I tried it, and it works :)

No comments:

Post a Comment