Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS IE8 problems using a full screen scale background

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #44456
    Joejacks
    Participant

    Hi

    I am trying to stretch a background image in the body tag using the code below. It works well in Chrome and Firefox but in IE8 the page is not working, the page will not scroll and is unresponsive

    background:url(bg.jpg) no-repeat center center fixed;
    -webkit-background-size:cover;
    -moz-background-size:cover;-
    o-background-size:cover;
    background-size:cover;
    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’bg.jpg’,sizingMethod=’scale’);

    The problem seems to be
    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’bg.jpg’,sizingMethod=’scale’);

    but when I remove this and view in IE8 the background image does not cover the page background, but the site does work again.

    Regards
    Joe

    #133703
    Paulie_D
    Member

    IE8 does not support `background-size:cover`.

    On looking at the Sizing Method

    >scale : Stretches or shrinks the image to fill the borders of the object.

    It doesn’t specify that it will **distort** the image to fill both vertically and horizontally.

    This might help: https://css-tricks.com/perfect-full-page-background-image/

    #133705
    Joejacks
    Participant

    So is it recommended to take this out
    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’bg.jpg’,sizingMethod=’scale’);

    If so what would I replace it with to get a full screen background in IE8

    #133706
    Paulie_D
    Member

    See the link above which has a couple of options

    #133707
    Joejacks
    Participant

    Thanks I have now sorted the problem using a blank div and assigning the styles to this

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.