...

View Full Version : centering content



vinoman
12-12-2007, 11:33 PM
How do I center the columns, header, and footer on the page?

Please view: http://www.spirit-medium.net/

Thanks

Apostropartheid
12-12-2007, 11:39 PM
I actually so thought you were using tables then. Anyway, just wrap it up in a container div, set a width and its margins to margin: 0 auto;. You can center most elements this way.

jlhaslip
12-12-2007, 11:49 PM
html, body {
margin: 0 auto;
padding: 0;
width: 90%;
background-color: #cfc; /* light green body color */
color: #000;

}

vinoman
12-13-2007, 12:35 AM
html, body {
margin: 0 auto;
padding: 0;
width: 90%;
background-color: #cfc; /* light green body color */
color: #000;

}


This style is already there. Do I have to create another container and add the style to it?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum