On 8/1/05, CJ Larson <[EMAIL PROTECTED]> wrote:
> I'm using an xhtml doctype on my pages and am not able to have table
> height be 100%.  When I change the doctype to an html traditional with
> no url, though, the table displays "correctly" at the full page height.

You're observing the correct behavior with the complete doctype. The
height attribute for tables is not valid, so a browser in compliance
mode will rightfully ignore it.

However, one *can* apply 100% height to a table with CSS, but it needs
a parent element to be 100% of. If you want your table to fill the
browser window, you'll have to make both the html and body elements
100% first.

html, body { height: 100%; }
#mytable { height: 100%; }

Of course, you shouldn't be using tables for page layout anyway and
this advice should not be construed as an advocation of such misuse of
HTML. [Disclaimer included to maintain my standardista image.]


-- 
Craig, www.focalcurve.com
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to