PNG IE6 transparency issue

Microsofts solution for the PNG transparency problem in IE 6.0

<!-- 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 mention 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.

Written by: Dag Jonny Nedrelid
©2007-2012 http://thronic.com


Feel free to leave a comment.
Name:
URL:
0