AutoPNG is comprised of two different CSS rules: one for
<img> tags, and one for background images. Either or both can be applied as desired, as they are implemented independently. It is worth noting that the rule for background images has recieved more love.
- Either inline it with, or load it in addition to, your other IE compatibility rules. IE6 only, please; it may work with IE5, but it's never been tested, and PNGs work properly in IE7 in the first place.
- Modify the rule selectors as appropriate.
- The selector for images should be correct in the first place.
- In practice, I tend not to use the
autopngclass to indicate background image replacement; rather, I individually select elements requiring love.
demos/background.html for examples.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.