Veritas52
08-14-2011, 07:47 AM
This is my first post here, and my first time seeking help on a forum with a website, so please go easy on me.
Here's my problem: Whenever the width of the page shrinks below 100%, and you scroll to the right, the background doesn't follow. I designed the background images to stretch with the page, but this is a nasty side effect. I suspect that the divs containing the background image shrink when you shrink the page, but I can't figure out a solution that doesn't destroy the rest of my page. Also, I have nested divs in the main content of the page, set up that way to achieve the drop shadow effect seen just below the navigation bar. I suspect this may have something to do with it as well.
Here is the code controlling the background images.
#shadow{
background-image:url("images/bodyBGTop.gif");
background-repeat:repeat-x;
margin:0 auto;
padding-top:150px;
}
#body{
background-image:url("images/bodyBG.gif");
padding-bottom:48px;
}
#bodyInner{
width:1020px;
margin:0 auto;
}
#bodyInner:after {
clear:both;
content:"";
display:block;
height:0;
font-size:0;
}
Attached are the html and css files, as well as a picture of the problem. Here's the test link to my site: http://crazyoldmanthink.com/testsites/silvertutoring/
Any help is much appreciated.
Here's my problem: Whenever the width of the page shrinks below 100%, and you scroll to the right, the background doesn't follow. I designed the background images to stretch with the page, but this is a nasty side effect. I suspect that the divs containing the background image shrink when you shrink the page, but I can't figure out a solution that doesn't destroy the rest of my page. Also, I have nested divs in the main content of the page, set up that way to achieve the drop shadow effect seen just below the navigation bar. I suspect this may have something to do with it as well.
Here is the code controlling the background images.
#shadow{
background-image:url("images/bodyBGTop.gif");
background-repeat:repeat-x;
margin:0 auto;
padding-top:150px;
}
#body{
background-image:url("images/bodyBG.gif");
padding-bottom:48px;
}
#bodyInner{
width:1020px;
margin:0 auto;
}
#bodyInner:after {
clear:both;
content:"";
display:block;
height:0;
font-size:0;
}
Attached are the html and css files, as well as a picture of the problem. Here's the test link to my site: http://crazyoldmanthink.com/testsites/silvertutoring/
Any help is much appreciated.