How to center entire page?

what kind of web platform is this....or is it normal html?
 
HTML:

<div id="wrapper"> YOUR SITE HERE </div>

CSS:

#wrapper { width:1000px; 0 auto; }
 
@ SeRf*X: WP

@ salsabot: Does it matter where I put the wrapper? In the beginning of the css?

Will .main {width:1000px;} interfere with the wrapper?


Edit: One more thing - it's been months since I did this kind of thing, so I seem to have forgotten everything I knew about coding.. How do I remove the underline where it says "Forside", in the sidebar to the left?
 
Last edited:
<div class="main" style="margin:0 auto;">

If you have everything in <div class="main">
 
I always put it in an outer table that is 100% width and height, and is centered.
 
Back
Top