RE: CSS to center a table?

>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;">
      <tr>
        <td>this is a test</td>
      </tr>
    </table>
  </div>

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