Fit <TD> height to page

Posted by ssg on Stack Overflow See other posts from Stack Overflow or by ssg
Published on 2009-07-13T09:52:53Z Indexed on 2010/06/08 16:12 UTC
Read the original article Hit count: 369

Filed under:
|

Consider a table with three rows with heights 10, *, 10. I'd like the middle cell to be high enough to fit to the page vertically. Unfortunately "height:100%" doesn't work at table, tr, or td level, possibly due to standards. Even if it happens to work, I don't want 100%, I want 100% of clientHeight-20px :) I can always write script to calculate remaining clientHeight but I wonder if it can be achieved in HTML/CSS standards.

NOTE: I'm using table just for layout, if there are other ways to lay them down in a better way I'm ok with those approaches too.

© Stack Overflow or respective owner

Related posts about html

Related posts about css