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

Home Forums CSS [Solved] Full Page Backgrounds on iOS (background-size: cover) Reply To: [Solved] Full Page Backgrounds on iOS (background-size: cover)


@photocurio – I think you meant position:fixed not position:absolute for .background-div otherwise it scrolls with the rest of the content.

Also, I’m not sure you even need that img, you can use a background-image with cover on your div.background-div. Cover works because you’ve solved the problem of the size of the container being the display viewport not the size of the whole page including off-screen content.