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?
WebspeederAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Gurvinder Pal SinghConnect With a Mentor Commented:
why don't you set the specific height (or max-height) to the table row? so that it doesn't take the complete height
0
 
HainKurtSr. System AnalystCommented:
any sample code to demonstrate the issue?
0
 
WebspeederAuthor Commented:
I'll need to create a test page that has an example, Will post it as soon as I can.
0
 
WebspeederAuthor Commented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.