[thelist] Centering a table with css

Craig Saila crsaila at yahoo.ca
Thu Mar 14 12:13:01 CST 2002

> I'm not much of a designer and I'm not too good with positioning with
> CSS. All I'm trying to do is center a table without creating a
> and centering the table within that container.

Try this:
 BODY { text-align: center; } /* centers in IE 4-5.5 */
 TABLE.mainbox { text-align: left; margin: 0 auto; } /* centers in
complaint browsers }


Craig Saila
craig at saila.com  :  http://www.saila.com/

More information about the thelist mailing list