Possible duplicate:
do background size work in IE?
I am looking for IE8 and a lower solution for the css background-size property. Now I came across this post, but the problem is that it basically only covers:
background-size: cover;
(stretching over the whole element)
but not
background-size: contain;
(fitting 100*100% of the image inside the element)
Here is the IE solution:
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(
src='images/logo.gif',
sizingMethod='scale');
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(
src='images/logo.gif',
sizingMethod='scale')";
Now there are other values for sizingMethod, they are cropping and image, but they do not create the desired effect ( see why ) What is the possible solution for the background size: contain? I know there is a jquery plugin for this, but I would prefer to use, if possible, a more CSS-based method
Thank!
source
share