I am dealing with an issue on my HTML table where the headers are static and the rest of the body scrolls within a fixed size window. The problem arises when the number of rows is less than what fits in the scrolling window, causing the row size to automatically expand to fill the entire scroll window. How can I prevent this automatic expansion?
For example, if there is only 1 row in the table, the height of that one row becomes excessively large to fill the scrolling window. How can I maintain the original row height, even if it is the only row in the scrolling window? I have tried using the CSS height property for all <td>
, but it did not work as expected.
(For reference, the original row size is preserved in IE.)
Does anyone have suggestions on how to address this issue?
Thank you very much.