W3C home > Mailing lists > Public > www-talk@w3.org > May to June 2001

Re: CSS to center a table?

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 19 May 2001 12:49:17 -0700 (Pacific Daylight Time)
To: "Michael D. Crawford" <crawford@goingware.com>
cc: <www-talk@w3.org>
Message-ID: <Pine.WNT.4.31.0105191248560.760-100000@HIXIE.netscape.com>
On Sat, 19 May 2001, Michael D. Crawford wrote:
>
> Is there a way to use cascading stylesheets to center a table
> horizontally on a page?

   table { margin-right: auto; margin-left: auto; }

-- 
Ian Hickson                                            )\     _. - ._.)   fL
Invited Expert, CSS Working Group                     /. `- '  (  `--'
The views expressed in this message are strictly      `- , ) -  > ) \
personal and not those of Netscape or Mozilla. ________ (.' \) (.' -' ______
Received on Saturday, 19 May 2001 15:46:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:26 GMT