IE PNG - The PNG Transparency Problem in Windows Internet Explorer
IE, PNGAs many web developers may already know, several versions of Windows Internet Explorer (IE), cannot properly render PNG image transparencies. There are many CSS hacks and tricks out there to skirt this issue, most often by using less sexy graphics specific for IE browsers.
There is also a lesser known way of fixing the IE problem using a few simple lines of JavaScript.
The only downside to the JavaScript solution is that it only works on <img> elements, and does not work on background images or images placed with a style sheet. Also, the images must have their height and width attributes defined in the HTML.
The following JavaScript code is made available by ntlworld.com:
To use this code, simply call the script to the file in need of the fix and be certain your PNG images have the height and width attributes defined.
That’s it!
It appears you are new around here. You may want to subscribe to my RSS feed or register for email updates. Thanks for visiting!






















August 28, 2006 @ 2:48 pm
This is a fix I’ve used for Transparent Background images:
[Reply]
September 26, 2006 @ 7:45 am
[...] An overview of PNG status in different web browsers: Browsers with PNG Support The PNG problem in Windows Internet Explorer IE PNG - The PNG Transparency Problem in Windows Internet Explorer [...]