Question

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')"; 
} 
Was it helpful?

Solution

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.

OTHER TIPS

#div {
background: transparent;
filter:
progid:DXImageTransform.Microsoft.AlphaImageLoader(src=ie8-logo.png,sizingMethod='scale');

}

Please try like this "background: transparent"

/* This works in IE 8 & 9 too */
filter: alpha(opacity=50);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top