Click to See Complete Forum and Search --> : How to put a background on a web page


stewart3000
04-11-2009, 04:07 AM
Howdi,
How do you add a background layer over the background colour to house all the content??

Gararion
04-11-2009, 07:17 AM
You could either use tables or divs. Example of the div way could be

First in your style sheet have this:

#content {
width: 700px ;
margin-left: auto ;
margin-right: auto ;
}

Change the width to what ever width you desire (based on your header image). Then create a div tag with the class of content. Your site will go here, centered on the page with the fixed font. You can then place other div tags within that display the images and place them exactly where you wish. IE)

<div style="background-image:url; position:absolute; left:50px; top:50px; height:100px; width:800px"></div>

The left and top attribute being the distance of the top left corner fo the div block from the top left corner of the div block it is contained in.

Hope this helps.