Making PNG work for MSIE
Tired of IE's failure to support alpha transparency in PNG files? Here's a very easy fix.
Tired of not being able to use transparency in your PNG files? There’s a way to do it, but it’s a bit of a pain to do over and over again:
<img src=”blank.gif” style=”width: 100px; height: 100px; filter:
progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’image.png’, sizingMethod=’scale’)” />
And now, you don’t have to. How’s this sound:
img { behavior: url(“pngbehavior.htc”); }
You like? Go here.
Have something to tell us about this article?