November 08, 2005 Archives

08.11.2005 11:01

CSS centering

Well after much hair pulling i found out the hard way that to center a table using the "table { margin-left: auto ; margin-right: auto; }" you need to actually put it in a class or id of its own. For some reason just using table doesn't work for this. So you need something like this: table#center { margin-left: auto; margin-right: auto; } And then make your table with
-----

Posted by DaveQB | Permanent Link