...

View Full Version : centering content



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

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

Thanks

Apostropartheid
12-13-2007, 12:39 AM
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-13-2007, 12:49 AM
html, body {
margin: 0 auto;
padding: 0;
width: 90%;
background-color: #cfc; /* light green body color */
color: #000;

}

vinoman
12-13-2007, 01: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