0

I have defined background as below:

body{
    background-image:url('taksi.jpg');
    background-size:100%; 
    background-attachment:fixed;
}

Why these are different? (IE,Chrome) In as sense what is the problem?

ORDINARY CARE ordinary care

AND IE :( enter image description here

user1870012
  • 59
  • 1
  • 9

1 Answers1

1

According to this post, background-size is an issue with IE.

The accepted workaround for this was:

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

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

Read more about this answer here.

Community
  • 1
  • 1
Daniel
  • 10,864
  • 22
  • 84
  • 115
  • According to [Caniuse](http://caniuse.com/#search=background-size) and [Mozilla Developer Network](https://developer.mozilla.org/en-US/docs/CSS/background-size) background-size should work in Internet Explorer 9. Have you tried using the syntax background-size:100%, 100%; to see if that works? – pwdst Jan 17 '13 at 20:54