Height of tbody determines height of table records when records total < than toby height ...
Posted on 2011-02-10
I'm using tbody to set the height of the table body in order to get the scrolling body with the table headers remaining static.
The "problem" is that with a tbody height of 500px, if only one record is returned, that record is fitted to the entire height of the tbody.
How can I easily correct this without setting the height style of the table td? If I know it takes roughly 10 records to fill the tbody, I can create X dummy records so they are all normal height but that seems like a cheesy way of doing it.