.ninja {
    color: black;
    visibility: hidden;
}

CSS Ninja

Take control of your style sheets.


Tuesday, August 5, 2008

PNG Transparency - Unit PNG Fix

This is just a quick follow-up to my post last week. While reading Webappers.com, I came across their write-up on the Unit PNG Fix. Ihad the chance to use it this weekend on a personal project and it worked like a charm.

As they point out on their site, it definitely has its upside:
  • Very compact javascript: Under 1kb!
  • Fixes some interactivity problems caused by IE’s filter attribute.
  • Works on img objects and background-image attributes.
  • Runs automatically. You don’t have to define classes or call functions.
  • Allows for auto width and auto height elements.
  • Super simple to deploy.
The one issue I did come across was the way it treats background images... So, if you're trying to use the navigation sprite (1 image for all images/states), it screws that up. Having said that - if the IE6 PNG transparency issue is something you've been looking into, this is certainly worth a shot.

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home