> 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.

Try adding height:100% to the HTML and the BODY tags. Also, I believe that
with an XHTML doc type you need to explicitly define the table as having the
display property of table [1]. Example below:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
<html style="height:100%;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Border Spacing Test</title>
</head>

<body style="height:100%;">
<table style="display : table; height: 100%; width: 100%;" border="1"
cellpadding="0"
cellspacing="0">

    <tr><td style="height: 100%">this td should take up almost all the
height</td></tr>

    <tr><td>footer (should be on very bottom of screen)</td></tr>

</table>
</body>
</html>

Regards,
Ron

[1]http://www.w3.org/TR/CSS21/tables.html
______________________________________________________________________
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