Solution For Getting background-size To Work In IE Or Internet Explorer

Hi Friends,As you all know I am php freelancer from India and I like to share lots of information to readers of my site, So it can help them to solve issues quickly. Today in this article I am going to give solution for Getting background-size To Work In IE Or Internet Explorer 5.5+. someday ago when I tried to use it in one project I found that it is not working in internet explorer and after searching I found solution for it from msdn.com

Below are css code which you should add to css where you want to use background-size for IE. For example if you want to use background-size in “container” class then add below code in “container” class and below this code use background-size property So it will work for Internet explorer 5.5+.

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

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

Let me know if it is not working for you I will try to help you out and If you have any other trick to make background-size to work in IE then let us know in comment.

Source: AlphaImageLoader Filter