Question

I am trying to make my site compatible with IE7. Initialy i used background-size: contain to fit the backgroun inside an <a> element. But IE7 does not support CSS3. So my question is: Is there a way to resize the background through CSS or i have to resize the .png images?

Était-ce utile?

La solution

you can use this :

filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(
src='images.gif',
sizingMethod='scale');

-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(
src='images.gif',
sizingMethod='scale')";

and replace sizing method and image with what you want

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top