How do I make background-size work in IE?

A bit late, but this could also be useful. There is an IE filter, for IE 5.5+, which you can apply:

filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(
src="https://stackoverflow.com/questions/2991623/images/logo.gif",
sizingMethod='scale');

-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(
src="https://stackoverflow.com/questions/2991623/images/logo.gif",
sizingMethod='scale')";

However, this scales the entire image to fit in the allocated area, so if you’re using a sprite, this may cause issues.

Specification: AlphaImageLoader Filter @microsoft

Leave a Comment