W3C home > Mailing lists > Public > www-style@w3.org > July 2001

RE: Table height/width properties

From: Manos Batsis <m.batsis@bsnet.gr>
Date: Mon, 2 Jul 2001 18:43:00 +0300
Message-ID: <A35E2040C17F0C48B941B8F4D0DF122908E2C4@ermhs.Athens.BrokerSystems.gr>
To: "Glen Harman" <gharman@erols.com>
Cc: <www-style@w3.org>

I'm sorry but I believe you are mistaken. From what I know of,
percentage width is calculated against direct parent width values.
So, if my dad owns 80% of the stuff that's in the fridge and I own 100%
of the stuff my dad owns, I also own 80% of what's in that fridge.
Height is another story though. Check

http://www.w3.org/TR/REC-CSS2/visudet.html#the-height-property

I'm going home before I starve to death.

Manos

> -----Original Message-----
> From: Glen Harman [mailto:gharman@erols.com]
> Sent: Monday, July 02, 2001 6:10 PM
> To: www-style@w3.org
> Subject: Table height/width properties
> 
> 
> Greetings,
> 
> I have a question about how table height/width properties should
> be processed.
> 
> The scenario is a one-celled outer table containing a one-celled
> inner table.  When you set, for example, the inner table's height
> and width to 100%... what is that relative to?  The content edge of
> the outer table's td?  The padding edge of the outer table's td?
> Something else?  I've created two tests:
> 
> 1) http://www.gharman.com/tablesize1.html
> 
>     table.outer {height:100%;width:100%;}
>     td.outer {height:100%;width:100%;}
>     table.inner {height:100%;width:100%;}
>     td.inner {height:100%;width:100%;}
> 
> 2) http://www.gharman.com/tablesize2.html
> 
>     table.outer { } (height & width not specified)
>     td.outer {height:100px;width:100px;}
>     table.inner {height:100%;width:100%;}
>     td.inner {height:100%;width:100%;}
> 
> Now in both cases I would expect concentric/square boxes.
> In example #1, since the outer table is full height and width, I
> would expect them to occupy most of the viewport.  In example
> #2, since the outer table size will be driven by the outer td size
> of 100px, I would expect something smaller.  But in both cases
> I would expect the inner table and td to be square.  Is my thinking
> correct or flawed?
> 
> TIA,
> Glen
> 
> 
Received on Monday, 2 July 2001 11:44:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:09 GMT