Webspeeder
asked on
Height of tbody determines height of table records when records total < than toby height ...
Hey all.
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.
Any suggestions?
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.
Any suggestions?
any sample code to demonstrate the issue?
ASKER
I'll need to create a test page that has an example, Will post it as soon as I can.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I can't duplicate the issue by creating an HTML page straight out which tells me that I'm doing something in the way I'm creating the page via server calls. I'll figure that out, in the meantime I'll set the tr height.