I am building a website for newer browsers, but I want it to look decent in IE8 too. Everything was OK, until I ran into a problem. I found that background-size
is not working in IE8. After some research I was able to find some sort of "hack", but it didn't work for me.
Maybe I am doing something wrong; please take a look at this code and maybe suggest a solution that will fix background sizing in IE8, (preferably a CSS solution).
.logo {
width: 190px;
height: 204px;
background-image: url("../img/logo.png");
background-repeat: no-repeat;
background-size: 190px 204px;
/** This is the so called IE8 hack, but it doesn't seem to work **/
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/logo.png',sizingMethod='scale');
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/logo.pn',sizingMethod='scale')";
/** End of Hack */
position: absolute;
display: block;
z-index: 99;
margin: -73px 0 0 405px;
}