If I have understood your question right you want to have a static middle and if somebody has a different screen res the middle will still be centered and the same size, but the space on both sides of the middle will just expand?
Ok, here's how:
Make a div named "container". ALL of your future content need to be WITHIN that div!
In your CSS doc write following:
Quote:
#container { position:relative;
width: The width of ALL of your content (including if you have any boxes etc beside your main content);
margin: auto;
}
|
What we've just done is to make the space that will contain and center your site and content.
Now we move on to do the middle space:
Make a div named "middle" or something like that. Now in your CSS write following:
Quote:
#middle {width:the width of your main content px;
margin-left: auto;
margin-right: auto;
text-align:center;
background-color:#XXXXXX;
}
|
Now you have made your main content. You only need to dicide which color you want the background (the space between your main content) to be. Specify that by typing this into your CSS:
Quote:
|
body {background-color:#XXXXXX; }
|
Hope this helped 
Last edited by CaptainB; 06-04-2007 at 03:36 PM..
|