inVINCEable
06-03-2007, 01:41 AM
I have a background picture set to repeat like this in my css file:
body {
background-image:url(body_bg.gif) ;
background-repeat:repeat-x;
background-color:#d4e1f0;
}
^This works fine. the body_bg.gif is only around 500px in height, so I simply added the background color and it expanded down to the bottom of the page which is just what I wanted.
Now, when I try to do this with my #wrapper, it creates a problem.
#wrapper {
width:1000px;
margin:auto;
background:url(page_bg.gif);
background-repeat:no-repeat;
}
The page_bg.gif also ends around 500px so I also tried using the background, background-color etc to get it to expand, but it seems as no matter what I do nothing changes.
Any advice?
Thank you.
body {
background-image:url(body_bg.gif) ;
background-repeat:repeat-x;
background-color:#d4e1f0;
}
^This works fine. the body_bg.gif is only around 500px in height, so I simply added the background color and it expanded down to the bottom of the page which is just what I wanted.
Now, when I try to do this with my #wrapper, it creates a problem.
#wrapper {
width:1000px;
margin:auto;
background:url(page_bg.gif);
background-repeat:no-repeat;
}
The page_bg.gif also ends around 500px so I also tried using the background, background-color etc to get it to expand, but it seems as no matter what I do nothing changes.
Any advice?
Thank you.