• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 359
  • Last Modified:

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?
0
Webspeeder
Asked:
Webspeeder
  • 2
1 Solution
 
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
 
Gurvinder Pal SinghCommented:
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
 
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

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now