Back CSS

Quick and Easy CSS PNG Fix for IE6

WRITTEN BY ON 15 Dec 2010
11,646 VIEWS • SHARES
0 comments

This is the quickest way to fix ie6 annoying short coming (it doesn't work with background-position). However, if you want a better solution to could fix all the png images in your css files, you can try this IE PNG Fix from twinhelix and the new version support background position!

CSS

.png_hack {
  background-image: url(../img/the_image.png) !important;
  background-image: none;
  filter: none !important;
  filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/the_image.png');
}

Join the discussion

Comments will be moderated and rel="nofollow" will be added to all links. You can wrap your coding with [code][/code] to make use of built-in syntax highlighter.