Posted By

dloop on 09/18/10


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


IE6 PNG Fix using DD_belatedPNG with supporting repeated background

 / Published in: HTML


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.