0

Could you please suggest the best way to hack the background-size issue with IE8 ?

raki
  • 2,253
  • 8
  • 33
  • 42

2 Answers2

1

You could reference for the "cross-browser" solution of background-size.

As far as I know, you can achieve it by following THIS TUTORIAL link, as you have no code to show us in your questions, so I can only recommend you to take a look on that link.

By the way, as it is mentioned, it will work fine if need to fill the whole screen ( or bigger elements ), and it will be buggy with small-size items.

But anyway, there is a solution to fix IE problem when dealing with sprites.

aspirinemaga
  • 3,753
  • 10
  • 52
  • 95
0

Not sure what your issue is, but this CSS IE8 hack might be of some use. Any CSS within these brackets will only be read by IE8.

@media \0screen {
    /*put css tags here as normal*/
    div.example {
        background-color: #FFFFFF;
    }
}
Andrew
  • 1,963
  • 3
  • 25
  • 35