.PNG Transparency in Internet Explorer (previous to 7)

While working on the new logo for my site I discovered that my nice .PNG image with its transparency effect which allowed the site background to shine through did not work in older versions of Internet Explorer. Instead of being transparent, there was an ugly square glow around the entire logo when viewed in Internet Explorer.

Luckily though I was presented with a quick and easy method of resolving this with a Javascript. All you need to do is upload this file (pngfix)to your server and then insert the below code into your Header. And voila, transparent PNG in Internet Explorer and Firefox.

<!–[if lt IE 7.]>
<script defer type=”text/javascript” src=”pngfix.js”></script>
<![endif]–>


1 Comment so far »

  1. Bookmarks about Png said,

    Wrote on November 6, 2008 @ 9:14 am

    [...] - bookmarked by 2 members originally found by elCoya on 2008-10-26 .PNG Transparency in Internet Explorer (previous to 7) http://blog.dropthemike.com/2008/08/28/png-transparency-in-internet-explorer-previous-to-7/ - [...]

Comment RSS · TrackBack URI

Leave a Comment

Name: (Required)

E-mail: (Required)

Website:

Comment: