Wednesday, July 22, 2009

Unit PNG Fix

Forget about your pretty pngs on your page, they don't work in IE6. Fortunately, the folks over at Unit Interactive created a fix for this problem. Granted this is not the only png fix out there, but I found out their technique is the easiest to implement. Here's why they say it will be the last one you need to download:

  • Very compact javascript: Just over 1kb!
  • Fixes most interactivity problems caused by IE’s filter attribute.
  • Works on img objects and background-image attributes.
  • Runs automatically before page load on all, or just specific elements.
  • Allows for auto width and auto height elements.
  • Super simple to deploy.

Here's the link to Unit Interactive's Unit PNG Fix:
http://labs.unitinteractive.com/unitpngfix.php:

1 comment: