clipped from: www.twinhelix.com   

IE PNG Alpha Fix v1.0 RC4


What is it?


IE/Windows has very poor PNG support with regards to transparency

As you are no doubt aware, . That's where this script fits in. It's an IE5.5+ 'behaviour' that you can upload, place one line in your CSS file, and forget. The HTC file will then automatically add near-native PNG support to IMG elements and (unlike many other PNG fix scripts) also supports any element with a "background-image:" CSS property, with no alterations to the page HTML!


Known Issues


  • Background PNG images can't be tiled. This is a limitation of the IE filter.

  • It's most reliable on elements with non-'auto' dimensions set. So, give images and other elements width/height values; '100%', '10em' and '200px' and so on are all OK.

  • Similarly, padding and borders don't indent the PNG image. An easy fix for this is wrapping your PNG images in container DIVs or similar.

  • There may be about a short time as soon as the image loads when images are not transparent, before the IE filter kicks in.