...

View Full Version : Center Site?



Steve13
12-29-2005, 03:17 AM
I am trying to center the entire content of my site so it looks like it has borders all the way around but I cannot seem to get it to center. I checked the FAQ's and saw something on centering sites and tried it but nothing worked.


<body background="/images/bg.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td>

Here is a link to how it looks.http://www.mklandscaping.com/index_new As you can see the background is the grey but I want all the content to be on a white centered table.Any help would be gladly appreciated. Thank you

Steve13
12-29-2005, 03:45 AM
kind of like this site

http://www.stopdesign.com/articles/design_process/

_Aerospace_Eng_
12-29-2005, 03:54 AM
You can't use the absolute positioning the way you do if you expect your site to center. You will need to add a doctype, search around for doctype on www.w3schools.com and you will need to use margin:auto; to center your table, if you make your table position:relative; in CSS the absolute positioning will go off of the table rather than the browser (body).



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum