Definitive IE PNG Fix

Finally! The ultimate Internet Explorer fix for displaying Alpha Transparent PNG images

After many months of searching we have finally found the ultimate solution to the perennial problem of Internet Explorer 6 not supporting Alpha Transparent PNG images. Initially posted at http://bjorkoy.com/ the method involves using a .htc hack to script IE6's behaviour, and adding the following line to your css:

img {
    behavior: url(iepngfix.htc);
}

What makes this method so much better is that this PNG fix also works on css background images (as well as the standard <img> tags). To download the full code please go to www.twinhelix.com/css/iepngfix/. Hats off to Mr Turnbull for his sterling work!

Grow your business

Find out how Deep Blue Sky can grow your business.

  1. Digital benchmark
  2. Digital roadmap
  3. Digital engineering

Write a comment.

Responses. (1)

  1. PNG fixes and Google Maps

    Further to my initial post here about the definitive IE PNG fix we have discovered a potential pitfall.

    Internet Explorer fails to render the Google Map when you use the PNG Fix in the "wrong" way.

    To see my full explaination please read:

    IE PNG Fix and Google Maps