If you are CSS coder, you've probably ran in to png transparency problems many times. Even Microsoft is having problems with it http://runonce.msn.com/runonce2.aspx open in IE6. So I'll tell you few problems and solutions I've handled so far.
First one is if you need just simple transparent image, without some special needs for example backgrounds etc. The solution would be png fix. I've used it many times but it has lots of faults, for example with padding, margins and absolute positioning. Sometimes i can mess up the rest of your JavaScript files, but anyway very useful script. You can download it here http://homepage.ntlworld.com/bobosola/pngfix.js and just include it in your <head> tag

<!--[if lt IE 7.]> <script defer type="text/javascript" src="pngfix.js"></script> <![endif]-->
The second one can partly handle issues from first and it's pure CSS solution. I mostly use this for backgrounds, because if your path for a background is from CSS file then png fix can't handle it.

.someelement { background-image: url(images/image.png); } * html .someelemen { background-color: #333; back\ground-color: transparent; background-image: url(images/blank.gif); filter: progid:DXImageTransform.Microsoft. AlphaImageLoader(src="images/image.png", sizingMethod="scale"); }
I found this very useful, and also when you add some hover effects for example some color or other image. You can see live example here
NOTE: This simple hover is just example and it doesn't work in IE6
.someelement:hover { background: #333; } .someelement:hover { background-image: url(images/image2.gif); }
Only problem I had with this was with <a> tag, link just don't work (when it's in div with this kind of background) and i don't know why (talking again for IE6). And only solution i could think of was to place another absolute div over it for the links, content etc... Yes i know it's not elegant but it works if content is not dynamic.
Luckily more and more people are starting to use IE7, and i must say i have recently switched too, i had to have IE6 because of testing my code and when i found out for Multiple IE program I switched immediately
Have some feedback? Leave a comment



Nice, I will try transparent pictures next time
I could have workaround using IE filters but that defeats the purpose of image caching as images are filtered per instance not per image.
Instead I went the simple route. IE6 uses PNG8 transparency just fine. It is just index transparency not alpha transparency which sucks.
Solution use photoshop to save PNG24.
Then open with fireworks and save as PNG8 with alpha transparency. (photoshop wont do this.)
Final Result. Beautiful alpha on modern browsers. And ugly index transparency (GIF Style) on IE6 with no CSS hacks.
Trey (Web Standard CSS) Brister
Hi. Thank you for your CSS Hack. But does it work for old navigators ?
Play Free Online Games, sports games, massive multiplayer games, action games, puzzle games, flash games and more, casual games.
INTERFERENCE FOREIGN TRADE web environment
We offer all products with the best service initiatives, improving the quality of service the products you ihtal web environment provides a detailed way. Category dedicated to the product range with the desired structure, providing convenient access to products from our web site to review the order or request for information from the contact form to reach us
When I want an image with a transparent background and knowing that PNG’s don’t work in IE6, I will save the image as a GIF with no background and that works just the same as a PNG.
Thank you. It’s good for me.
I love this blog, thanks
Thanks for your work and for your comment
This is a great script to solve the .PNG issues in IE 6.
Nice looking site you’ve got here. Thanks for the tip!
автор, хорошо пишешь, продолжай в том же духе
Good Script. thank u
Nice script and solution.
Thanks for the script. Looks nice.
Pingback: 10 Best CSS Hacks
Pingback: 10 best CSS hacks - Nagpur Chat Room
this helped me so much! Thank you
this helped me so much! Thank you
Nice, I will try transparent pictures next time
Thanks for really good article. It seems that someone did a great work for all of us. What else I could say? Keep up the good work and don’t be shy
Great share and good news. Thanks for your effort. BTW: your site works superb.
The second one can partly handle issues from first and it’s pure CSS solution. I mostly use this for backgrounds, because if your path for a background is from CSS file then png fix can’t handle it.
thank you
Thank you for interesting article
http://www.altincilek.web.tr
altın cılek
Çok Sağol ya mükemmelmiş
%100 Doğal ve hiç bir yan etkisi olmayan Uzamax’ı keşfedin
UZAMAX içeriğinde mineral ve vitaminler barındıran, doğal bitkielerden üretilmiş gıda desteğidir. İçeriğinde herhangi bir kimyasal ürün bulunmamakla birlikte tamamen doğal kurutulmuş bitkisel bir karışımdır. Sadece birkaç aylık kullanım kürü sonrasında bile uzamax’ın etkisini hissedeceksiniz.
Uzamax kullanarak doğal yollarla bünyenize gerekli olan tüm besin, vitamin ve mineralleri vücudunuza almanızı sağlar.izlanda yosun hapı
Thanks a lot
is not easy to put on weight
Thanks There is a great solution, which fixes a lot of issues with ie6 and lower. And implements png transparency.
A beautiful and high quality information.this paper is accurate to be useful. Thanks to the author.
Nice script,
Thanks for the tip..
wooow that was good
Thanks There is a great solution, which fixes a lot of issues with ie6 and lower. And implements png transparency.
What is the solution for direct png images?
Thanks for the usefull info at the blog
Thanks for all the usefull info at your blog
Thanks for the usefull info at the blog
A beautiful and high quality information.
In A, B, C, high levels of vitamins and beta carotene barındıranAfrican Mango, form meets guidelines as well as the effect of contributing to the beauty of your hair and skin. Beta Carotene, to ensure the beauty of the skin, night vision to strengthen the immune system against disorders, a variety of infections contribute to the substance.Those who want to enter the world healthy and permanent form, which is a product of choice for African Mango, now in Turkey. Because people prefer to use a 100% herbal product that helps people to enter the African Mango form a single product.
http://www.africanmangosiparis.com/
Those who want to enter the world healthy and permanent form, which is a product of choice for African Mango, now in Turkey. Because people prefer to use a 100% herbal product that helps people to enter the African Mango form a single product.