IE6 Fixes For PNG Alpha Transparency
IE6 is the bane of many designers lives, it is jam packed full of bugs and as it’s not a standards-compliant browser you have to apply a shed load of fixes and hacks to make it play nice.
Maybe it’s just me, but should I still be writing about fixes for IE6 in 2009? Probably not but it’s something people still need to know and its one of the most asked questions in the WebM.ag inbox.
I couldn’t possibly write about EVERY IE6 bug, so I’m just going to write about “fixing” PNG Alpha Transparency in IE6.
I have listed 5 methods of enabling transparency for PNG images, although the fixes are superb, they are not without flaws but they certainly will help your site more aesthetic in IE6.
Doesn’t support background-position: fixed; but it’s really easy on the CPU as it resets all style behaviour.
Background images cannot be positioned or repeated (background-repeat), but it’s a really small effective script.
Only fixes images named ****-trans.png but as its all java it’s quick and keep your CSS valid.
Doesn’t support padding on PNG images, but margin will work. It’s a great plugin as it works nice and fast and supports PNG24.
Unit will support CSS background-repeat… but the image will stretch, on the up side it doesn’t use CSS so your CSS stylesheet will remain valid.
























December 6, 2009
Thanks for sharing all of methods, i already know about some methods which you listed but i think we should leave support for IE6 now coz IE6 user stats are 11.1% in November 2009 this is good news for us…. i am already leave support for IE6….
Tnx
December 6, 2009
Thanks Aftab, I’m 100% with you IE6 needs to go.
But 11% still is a good share, that could be 1 in 10 people.
Whilst in my personal projects I don’t even test for IE6 anymore, for clients work I still accommodate IE6.