W3C home > Mailing lists > Public > www-validator@w3.org > March 2002

Re: Thanks, but another problem has arisen. . .

From: Sascha Claus <SC_LE@gmx.de>
Date: Fri, 22 Mar 2002 20:32:15 +0100
Message-ID: <3C9B86BF.3080605@gmx.de>
To: "-(\\/)alus-" <dragon@outpostd34.com>
CC: www-validator@w3.org
-(\\/)alus- wrote:
> thing.  I have already tried using an inline css like style="height: 100%;",
> but this doesn't work either.  Is there any way to make a table have a
> height of 100% in XHTML?

It works. <table> has 100% of the parent element's height. The parent 
element certainly has no height specified. So it takes the height of the 
childs. The child is a table with height 100% of the parent element...

You have to declare a height for the parent elements, e.g.:
html {height:100%;}
body {height:100%;}
table {height:100%;}
Sascha Claus                                    (no mail copies, please)
mailto:SC_LE@gmx.de                                   PGP-key:0x9E095CA2
The best argument against democracy is a five-minute conversation with
the average voter.      (Sir Winston Leonard Spencer "Winnie" Churchill)
Received on Friday, 22 March 2002 14:33:14 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:32 UTC