Link to home
Create AccountLog in
Avatar of Webspeeder
WebspeederFlag for United States of America

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?
Avatar of HainKurt
HainKurt
Flag of Canada image

any sample code to demonstrate the issue?
Avatar of Webspeeder

ASKER

I'll need to create a test page that has an example, Will post it as soon as I can.
ASKER CERTIFIED SOLUTION
Avatar of Gurvinder Pal Singh
Gurvinder Pal Singh
Flag of India image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
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.