-
How to make a background go beyond the boundaries of the element (CSS)?
I have a site I’m working on, and the footer section moves up and down depending on the length of the content. I’m using a design where the background of areas of the page appear to run clear from one side of the browser to the other, even though the content is only near the center. The main background image accomplishes this for the header and the content area.
However, because the footer area is such that it can adjust from page to page, based on the length of the content, it needs its own background. But since the footer is inside the main content wrapper of that holds the rest of the page in the center, the background of the footer only goes to the widths of the main content area.
Is there a way to tell just the background image of the footer to start all the way on the left and go all the way right (beyond the wrapper boundaries). I assume there must be a way with absolute positioning, but after looking through w3schools.com’s CSS2 reference and not finding the right thing, I thought I’d ask here.
Thanks in advance for any help.
–Tevya