• mattmatt88

    (@mattmatt88)


    Hello,

    I know <=IE8 doesn’t support background-size. I need “background-size: cover” on my body for the background image. That’s why I used this filter, which works.

    <!--[if lte IE 8]>
        <style type="text/css">
        body {      -ms-filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='image.jpg', sizingMethod='scale')";    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='image.jpg', sizingMethod='scale');
        height:1100px;
        }
        </style>
        <![endif]-->

    As you can see I had to define a height because else <=IE8 stretches the image according to the height of the page. With this height, it works for my notebook window size but it still stretches the image if I have a smaller or larger window.

    I want that the background always has the full width and the proportional height. If the page is higher, the backgroundcolor should be used (the other browser do this automatically).

    Is there an easy way to fix that

  • The topic ‘"background-size:cover" Problem with’ is closed to new replies.