IE 8: background-size fix [duplicate]

As posted by ‘Dan’ in a similar thread, there is a possible fix if you’re not using a sprite:

How do I make background-size work in IE?

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

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

However, this scales the entire image to fit in the allocated area. So
if your using a sprite, this may cause issues.

Caution
The filter has a flaw, any links inside the allocated area are no longer clickable.

Leave a Comment