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

RE: CSS to center a table?

From: Mjumbe Ukweli <mjumbewu@hotmail.com>
Date: Sat, 19 May 2001 11:59:19 -0400
To: fish@infidels.org, Harshal_bhave@infy.com
Cc: www-talk@w3.org
Message-ID: <F167j0GQLPsdiYKwtkK0000cecb@hotmail.com>
>From: "Fish" <fish@infidels.org>
>Date: Sat, 19 May 2001 07:27:17 -0700
> > -----Original Message-----
> > From: Harshal_bhave [mailto:Harshal_bhave@infy.com]
> > Sent: Saturday, May 19, 2001 5:02 AM
> >
> > If you dont know dont answer dear.
>[censored] use "align=center" in your <TABLE> tags and
>scrap the CSS approach.

first, align="center" is deprecated.  it is better to say nothing and be 
thought a fool than to open your mouth and remove all doubt.

second, try this (and i apologize for the embedded html):

  <div style="width: 100%; height:100%;">
    <table style="margin: 0px auto;">
        <td>this is a test</td>

it works in mozilla.  it works in IE.  i haven't tried netscape (though it 
probably doesn't work in NS4.x; try it though).  good luck.

                                                  &#8226; mjumbe &#8226;

Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Received on Saturday, 19 May 2001 11:59:52 UTC

This archive was generated by hypermail 2.4.0 : Monday, 20 January 2020 16:08:25 UTC