Forum Moderators: open

Message Too Old, No Replies

TBody height

         

Yoeri

12:29 pm on Apr 13, 2005 (gmt 0)

10+ Year Member



Just playing around in FireFox with scrolling of the Table Body.

Why can't I get the TBody to scroll when there is a height defined in %?

Ex:

<div style="height: 500px">
<table style="height: 100%">
<thead>...</thead>
<tbody style="height: 100%; overflow: auto;">...</tbody>
</table>
</div>

I have a table that has a height in percentages, and I want the TBody to scroll? It doesn't seem possible ...

tedster

6:27 am on Apr 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't think it is possible with percentage heights - they are rendered by a rather complex set of rules that I haven't fully understood. Especially in a strict dtd, you don't easily get what you think you will.

For some juicy reading at the W3C, try this page:

[w3.org...]

Especially note section 17.5.3 "Table height algorithms"