...

View Full Version : Center/centre table ??



wap3
10-02-2002, 01:26 PM
Hey

How do I align a table to the middle of the page using CSS ??

I am trying not to use align="center" in the code

Any ideas ??

Thanks :thumbsup:

MCookie
10-02-2002, 01:44 PM
table {
margin:auto;
}

..but that doesn't center your table in Win/IE5 if I'm right. For IE5 you need text-align:center. But that centers about everything on your page, so then you have to use text-align:left at all places you don't want your stuff centered...

adios
10-02-2002, 04:38 PM
<div style="width:100%;text-align:center;">
<TABLE> here....
</div>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum