Reputation: 395
I am working on a real basic design as a side-project for my company, however am unable to get the background-size to do anything meaningful (or find any alternative that preserves the functionality it currently has). I have been working on this specific problem for around an hour and half now, any help would be appreciated.
The site I am working on can be found at http://code.msap.com/gflyer/flyer1.html
its important to note that I cannot modify anything before or after the container div. I also am not able to use javascript, and all CSS must be done in-line.
Is anyone able to steer me in the proper direction here?
Upvotes: 0
Views: 5000
Reputation: 1768
I have created a background-size polyfill for IE8 that is really simple to use:
.selector {
background-size: cover;
-ms-behavior: url(/backgroundsize.min.htc);
}
Upvotes: 1
Reputation: 168843
IE8 does not support CSS background-size
.
Your only solutions are:
ignore it; IE8 users will just have to upgrade.
use a Javascript polyfill to emulate the background-size
property in IE8 and earlier.
Rewrite your HTML so that the background image is in its own <img>
tag, which is sized appropriately and layered behind the element so that it looks like a background image.
use the Chrome-Frame plugin, which makes IE use the Chrome rendering engine. (your users would have to install the plugin for themselves though)
Upvotes: 1