View Single Post
Old 11-13-2012, 11:58 AM   PM User | #1
plaedien
New Coder

 
Join Date: Nov 2011
Posts: 15
Thanks: 4
Thanked 0 Times in 0 Posts
plaedien is an unknown quantity at this point
Stop background image from sliding horizontally with browser resize

Hi guys,

This is driving me nuts, and after an exhaustive google search, I cant seem to find a solution to this particular problem.

I have background image in the tag,

Code:
html, body {
 background-color: #ffffff; 
background: url(images/background-bamboo.png) top right no-repeat fixed; 
font-family: sans-serif;
 position: relative;
width: 100%; 
height: 100%; 
min-height: 100%; 
display: table; 
behavior: url(PIE.php); }
which works fine when scrolling up and down, but the problem is when the browser is resized horizontally the background image slides across, when I really want it positioned so that it never leaves the side of the div that sits on top of it.

Here is the site at the moment.

http://onthemend.com.au/test/

at a browser width of about 1525px, this is how I would want the background image to sit.

Any ideas? I know it's most likely something simple, but its doing my head in.

thanks
plaedien is offline   Reply With Quote