Skip to content

Instantly share code, notes, and snippets.

@abbotto
Last active December 21, 2015 04:28
Show Gist options
  • Select an option

  • Save abbotto/6249732 to your computer and use it in GitHub Desktop.

Select an option

Save abbotto/6249732 to your computer and use it in GitHub Desktop.
Super Simple jQuery PNG Fix for IE6 background images
/*
Works best for background images with set dimensions
Just add a ".pngfix" class to anything you want fixed
or put in some other jQuery selector.
*/
$('.pngfix').each( function() {
$(this).attr('writing-mode', 'tb-rl');
$(this).css('background-image', 'none');
$(this).css( 'filter', 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="path/to/image.png",sizingMethod="scale")');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment