0

I came across this solution about the background-size property. The problem is that every styling below this code stops working. It is just like IE ignores it.

enter image description here

#div {
    filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/img.jpg', sizingMethod='scale');

    -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/img.jpg',
sizingMethod='scale')"; 
} 
Community
  • 1
  • 1
user2013488
  • 363
  • 2
  • 6
  • 16

3 Answers3

1

I'm going to hazard a guess that it doesn't like your filter parameters being on more than one line.

The reason for this is because it may not be interpreting the } correctly, thus causing the rest of the stylesheet to fail.

Try putting the entire filter string on a single line, and make sure that the } is on the line after it.

Niet the Dark Absol
  • 320,036
  • 81
  • 464
  • 592
0
#div {
background: transparent;
filter:
progid:DXImageTransform.Microsoft.AlphaImageLoader(src=ie8-logo.png,sizingMethod='scale');

}

Please try like this "background: transparent"

Gaurav Gagan
  • 59
  • 1
  • 1
  • 10
-1
/* This works in IE 8 & 9 too */
filter: alpha(opacity=50);
samayo
  • 16,163
  • 12
  • 91
  • 106
Gaurav Gagan
  • 59
  • 1
  • 1
  • 10