Solved

Height of tbody determines height of table records when records total < than toby height ...

Posted on 2011-02-10
4
353 Views
Last Modified: 2012-05-11
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
Comment
Question by:Webspeeder
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 56

Expert Comment

by:HainKurt
ID: 34865861
any sample code to demonstrate the issue?
0
 

Author Comment

by:Webspeeder
ID: 34866383
I'll need to create a test page that has an example, Will post it as soon as I can.
0
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 250 total points
ID: 34868064
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
 

Author Comment

by:Webspeeder
ID: 34873563
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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question