PNG Alpha transparency code in IE

Because of incompatibilities between IE and the world, to get PNG transparency to work in IE you need to add this to your stylesheet:

img.transparent { filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='myimage.png',sizingMethod='scale');}

There’s more information at A List Apart and WebFX

Posted on 19 Oct 04 by Helen Emerson (last updated on 19 Oct 04).
Filed under CSS