Thursday, April 16, 2009

You can force IE to apply transparence to PNGs

You can force IE to apply transparence to PNGs. “In theory, PNG files do support
varied levels of transparency; however, an Internet Explorer 6 bug prevents this from
working cross-browser.”

Inster below code in your body css



<style type="text/css">
  #regular_logo
  {
background:url('test.png'); width:205px; height:205px;
}
/* \ */
* html #regular_logo
{
background:none;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='test.png', sizingMethod='scale');
}
/* */
</style>




Before CSS (Download below image)




After apply above CSS like below image