PNG IE6 transparency issue

PNG IE6 transparency issue

-

-

<!-- This DIV is the target container for the image. -->
<DIV ID="oDiv" STYLE="position:absolute; left:140px; height:400; width:400; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader( src='image.png', sizingMethod='scale');" > </DIV>

Worth to note that ‘filter’ is not valid CSS, and should perhaps only be used with IE6 and avoid it when possible. You can wrap code that contain this fix in control structures that check the browser version of the client.

<!--[if IE 6]>
According to the conditional comment this is Internet Explorer 6
<![endif]-->

You can read more about conditional comments here.

Leave a Reply