I used this property in css but its not working in IE8
html{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../../images/bg.jpg', sizingMethod='scale');
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../../images/bg.jpg', sizingMethod='scale')";
}
body {
background-image:url(../../images/bg.jpg);
background-repeat:no-repeat;
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
}
I got many solutions on stackoverflow but none of them worked.
How can I solve this?
I think generic tags should go after the browser-specific ones:
and also:
Hope this works.
Try this
I made a Sass Mixin if this help anyone:
Call it by using
I know this is late, but this answer may help someone else:
Download backgroundsize.min.htc and put it inside your project.
Now simply add these lines in your css:
NOTE: use the
url
according to your project setup.Enjoy this simple solution. :)