Forums

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

Home Forums CSS Stop background image from sliding horizontally with browser resize Re: Stop background image from sliding horizontally with browser resize

#114289
plaedien
Participant

I couldnt deal with the scroll bar, so i ended up biting the bullet and doing a large background image which is mostly white – turns out it was only 10kb more than the bamboo by itself anyway – so what the hell. Found this code that makes it work perfectly:

html, body {
background: #fff url(images/background-bamboo-large.png) no-repeat center top;
padding: 0;
margin: 0;
width: 100%;
display: table;
height: 100%;
min-height: 100%;
font-family: sans-serif;
behavior: url(PIE.php);
}

thanks for your suggestions though :)