View Full Version : Wide backgrounds

05-18-2011, 11:44 AM
Hi there,

I'm sure this has a very simple answer so apologies in advance.

I am building a site where the header, footer and main content area all fit within a width of 960px. However, there are background elements which sit outside of this, some of which overflow into the main content area and footer, and I was wondering how best to deal with this in the markup and CSS.

Please see image attached for an example of what I mean. Excuse the drawing ;)

Thanks in advance

05-18-2011, 12:50 PM
What does your markup look like? If you have a container div that holds all of your page you cans still apply a background image to the body or html elements (or both).

05-18-2011, 03:14 PM
Please show the code you have been working on. You would probably need to be using absolute positioning on those elements with some z index values. But again, would be easier to see you code.