Skip to main content
Dewan9598
Known Participant
May 9, 2018
Question

Background attachment.

  • May 9, 2018
  • 3 replies
  • 1232 views

background-image: url(../images/Sitephotos/body.jpg);

background-attachment:fixed;

Works for Internet Explorer and Microsoft Edge but Google Chrome drags the background image down on scroll. Any suggestion how this can be fixed for Chrome?

    This topic has been closed for replies.

    3 replies

    Dewan9598
    Dewan9598Author
    Known Participant
    May 9, 2018

    Whatever is suggested on this page works on Internet Explorer and Microsoft Edge. Google Chrome drags the background downwards. It was working fine on Chrome till day before yesterday. No changes in codes have been made. Since yesterday, Google Chrome started misbehaving.

    Nancy OShea
    Community Expert
    Community Expert
    May 9, 2018

    Upload work to your remote server and post the URL please.

    Nancy O'Shea— Product User & Community Expert
    Dewan9598
    Dewan9598Author
    Known Participant
    May 9, 2018
    Nancy OShea
    Community Expert
    Community Expert
    May 9, 2018

    Try this:

    background: url(https://placeimg.com/1200/500/arch) no-repeat center center fixed;

    background-size: cover;

    }

    Nancy O'Shea— Product User & Community Expert
    Dewan9598
    Dewan9598Author
    Known Participant
    May 9, 2018

    Nancy Shea, with this in my case, the background gets attached to the page and scrolls with it in all browsers. I got rid of it and set the original simple code:

    html {

    background-image: url(../images/Sitephotos/body.jpg);

    background-attachment:  fixed;

    }

    Works on IE and Edge. but not on Chrome. Not fixed on Chrome. Drags down as I scroll down and the page goes up.

    BenPleysier
    Community Expert
    Community Expert
    May 9, 2018
    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!