The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Centering a page using CSS (WordPress) Re: [Solved] Centering a page using CSS (WordPress)


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.

, To answer your question: No, your pagewrap does not belong in the header, it belongs in the body. Add this CSS in your stylesheet

* { 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