[thelist] table height: 100% with CSS

Russ russ at unrealisticexpectations.com
Mon Dec 8 15:39:14 CST 2003


> Maybe I'm having a stupid moment, but I can't see how to make 
> a table 100% high in CSS.
> 
> I'm trying to make a manual form that looks sensible onscreen 
> but which prints three columns so the user can print and fill 
> out by hand. Without putting loads of <br>s in I can't see 
> how to make the table a full page deep.

Try this:

<html> 
   <head> 
      <style> 
         html, body {height: 100%; margin: 0px;} 
      </style> 
   </head> 
   <body> 
      <table style="height: 100%;" height="100%"> 
         <td>content</td> 
      </table> 
   </body> 
</html>

HTH,

Russ



More information about the thelist mailing list