[thelist] Centering a table with css

aardvark roselli at earthlink.net
Thu Mar 14 12:40:00 CST 2002

> From: "Warden, Matt" <mwarden at mattwarden.com>
> 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
> container and centering the table within that container.

didja try margin-left:auto; and margin-right:auto; ?

isn't 100%, but it's been used with success before...

> Right now, i'm adding a margin on each side of the table. I don't want
> to do that if I don't have to. Here's the page:
> http://bhs2002.com/bhs.shtml

oh, does that mean you don't want the margin?

your approach is good (width-80%,right-10%,left-10%), btw...
nothing really wrong with it if it works...

More information about the thelist mailing list