Posted By

dloop on 09/18/10


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

jplr
fady_ay


IE6 PNG Fix using DD_belatedPNG with supporting repeated background


 / Published in: HTML
 

URL: http://www.dillerdesign.com/experiment/DD_belatedPNG/

Start with a basic IE6 conditional comment. Add the javascript inside for IE6. Pay close attention to the parent child structure. If the image is by itself, include the parent element; example: "#element img".

  1. <!--[if IE 6]>
  2. <link type="text/css" rel="stylesheet" href="ie6.css" media="screen" />
  3. <script type="text/javascript" src="js/DD_belatedPNG_0.0.8a-min.js"></script>
  4. <script>
  5. DD_belatedPNG.fix('.element with png, #elements with png');
  6. </script>
  7. <![endif]-->

Report this snippet  

You need to login to post a comment.