DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Transparent Pngs In IE

11.03.2005
| 2270 views |
  • submit to reddit
        Keep in mind that the AlphaImageLoader takes a relative path to the HTML page, not the CSS file (which is in contrast to normal css behavior).  Absolute positioning causes it to act funky, so I wouldn't recommend it.

* html #blah {
  filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/full/path/to/img.png', sizingMethod='crop');
  background:none;
  cursor:hand; /* only if this is a link */
  position:relative;
}