CSS help please

Commissario
Joined
23 Nov 2004
Posts
42,287
Location
Herts
I've got a background image and would like to overlay a white box for the all of the content, but keep the background image showing on each side.

I can't think of what to search or how to explain it so have drafted up a quick example in Photoshop -

biZpxTO.png

Can someone explain how to achieve this please? I want the white box to increase in size depending on how much content there will be.
I've tried using a background image and creating a div for all of the content with white background but isn't working!
 
Just give it (the div) a background colour of white in the css? Can't imagine why it wouldn't work.
Div {
Background-color: White;
}

Replacing div with the id of your div and apply the background image to the container div or body tag
 
Back
Top Bottom