Home › Forums › CSS › [Solved] Centering a page using CSS (WordPress) › Re: [Solved] Centering a page using CSS (WordPress)
May 1, 2011 at 11:43 am
#48209
chrisburton
Participant
Wrong @cssloser
why would you create a separate css file for a small reset that would require an extra http request? That would mean it would take more time for your website to load.
@jtso23, To answer your question: No, your pagewrap does not belong in the header, it belongs in the body. Add this CSS in your stylesheet
/*****
RESET
*****/
* { margin: 0; padding: 0; }
#page-wrap { width: 960px; margin: 0 auto;}
Specify a width so the auto margin can determine what is the center
Now add the page-wrap right after the body element
Remember to close the div right before your footer