Re: centring tables

by Ed Lazor <osmosis(at)atfantasy.com>

 Date:  Fri, 08 Dec 2000 17:50:38 -0800
 To:  "Nick Doylend" <ndoylend(at)hashishin.net>,
<hwg-style(at)hwg.org>,
"Stephanie Thrasher" <sjthrasher(at)jps.net>
 References:  daydreamer boris
  todo: View Thread, Original

Like this.  It will work for IE and Netscape.  At least, it did when I 
tested it just now:  IE 5.5, Netscape 4.75, and Netscape 6.0 PR2

-Ed


<table width=100% height=100%><tr><td valign=center align=center>

         <table width=200 height=200 border=1><tr><td valign=center 
align=center>
                 This is a test<br>
         </td></tr></table>

</td></tr></table>

At 12:47 AM 12/9/2000 +0000, Nick Doylend wrote:
>Don't think I can do that, because the parent table will only extend down as
>far as needed to fit the contents i.e. the child table.  It has no way of
>knowing how big it is in relation to the overall canvas.  (At least I think
>that's what's happening!)  The table height attribute would do the trick but
>it doesn't exist!
>
>Nick
>
>----- Original Message -----
>From: Stephanie Thrasher <sjthrasher(at)jps.net>
>To: <hwg-style(at)hwg.org>
>Sent: Friday, December 08, 2000 9:22 PM
>Subject: Re: centring tables
>
>
> > I'm not sure without seeing what you're doing, but couldn't you nest the
> > table inside another one, with valign set to "middle" in the parent
>table's
> > cell?
> >
> > Stephanie
> >
> > ----- Original Message -----
> > From: "Nick Doylend" <ndoylend(at)hashishin.net>
> > To: <hwg-style(at)hwg.org>
> > Sent: Friday, December 08, 2000 12:28 PM
> > Subject: centring tables
> >
> >
> > > Just attempting to get one or two pages validated, everything's fine
> > except,
> > > you guessed it...  I'm using tables improperly for layout and there is
>no
> > > height attribute for the table element.  I was using it to vertically
> > centre
> > > the table.  Is there another (possibly CSS) way of achieving this?
> > Thanks,
> > > Nick
> > >
> > >
> >
> >
> >

HWG hwg-style mailing list archives, maintained by Webmasters @ IWA