PNG fix for IE6 in wordpress

Add the following code in the <head> tag

header('Content-type: text/x-component');
<style type="text/css">

Copy and paste this one line into your site's CSS stylesheet.
Add comma-separated CSS selectors / element names that have transparent PNGs.
Remember that the path is RELATIVE TO THIS HTML FILE, not the CSS file.
See below for another method of activating the script without adding CSS here.

img, div, input { behavior: url("http://<domain name>/wp-content/themes/<theme name>/") }
Here's an example you might use in practice:
img,, .pngfix, input { behavior: url("/css/") }blank


and download the files



rename the iepngfix.doc to and put it on the root of your theme folder.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.