Hi guys ok. I tried it & couldn't get the result I wanted.
I have a header div that has a border, background colour & and a background graphic
I set margin left & right on auto & hey presto the graphic is center but the background colour and border are width of the screen and I want a set width.
The moment I set a width the whole thing jumps back to the left.
I have the text align center in the body as well as the header class that I have created.
I tried a small space - something like a single row in a table that you might use for a links / menu bar with a background colour and border. Tables easy just create table give it the right properties.
CSS - same problem. I want it 720 px wide but the moment I put a width in it jumps left !
Here is the CSS code for both classes
.header{
border: 1px solid #234;
background-color: #FDF5E6;
background-image:url(../graphics/banners/2007.jpg);
background-position:center;
background-repeat:no-repeat;
height:140px;
background-color:#FDF5E6;
margin-left

;
margin-right

;
text-align:center; width: 720px;}
.header-space {
height: 20px;
margin-left

;
margin-right

;
margin-top: 4px;}
border: 1px solid #234;
background-color:#FDF5E6;
width: 720px;}
Any answers appreciated. I know I can fix this with absolute positions but it means the footer has to go inside my mid-section so that I dont have to have either a seperate footer style sheet for each page or put the style locally so that the footer position can be adjusted accodring to the height of the mid section. Does that make sense?