Thank you for the feedback! Removing the table { height: 100%; } did not work because it doesn't stretch the table to the bottom of the page. This stretching is what I wanted, but I think this is also what caused the overly inflated <tr> which this question refers to.
The solution to this was more of an accident:
<tr style="height: 0;">
...
</tr>
With this, the row shrinks to the size of its content, while the table still stretches to the bottom of the page. Not sure if this is a "healthy" solution, but is sure works.
Answer from Jens on Stack OverflowThank you for the feedback! Removing the table { height: 100%; } did not work because it doesn't stretch the table to the bottom of the page. This stretching is what I wanted, but I think this is also what caused the overly inflated <tr> which this question refers to.
The solution to this was more of an accident:
<tr style="height: 0;">
...
</tr>
With this, the row shrinks to the size of its content, while the table still stretches to the bottom of the page. Not sure if this is a "healthy" solution, but is sure works.
remove height
html, body, table {
width: 100%;
}
and it looks like this (no more overhead in <tr> height)

Why 100% height on html and body anyway? Also, I would change There's a <ul> here to There's a <ul> here
Html table resize height and td height - HTML & CSS - SitePoint Forums | Web Development & Design Community
css - Auto height of table-row - Stack Overflow
html - Setting table row height - Stack Overflow
css - HTML table dynamic height for one cell - Stack Overflow
Videos
Set height:100% on the second row.
<div class="row">
<div>Some text</div>
<div>Text again</div>
</div>
<div class="row last">
<div>Need height to bottom</div>
</div>
CSS
.row {
display: table-row;
border: 1px solid black;
}
.last
{
height: 100%;
}
FIDDLE
content which you want to show at bottom of the page apply this class to that division.
.row {
position: absolute;
bottom: 0;
left: 0;
}
Division at bottom side
Please check out this article i have below. You should not be using tables to layout or grid up your pages as you have done.
http://www.htmlgoodies.com/beyond/css/article.php/3642151/CSS-Layouts-Without-Tables.htm
Also just a hint as well, you shouldn't be using inline CSS styles it is very bad practice and makes modifying templates and pages very difficult in the future so use classes and a stylesheet to define any styles and/or layouts for yout pages. They are more dynamic and much easier to fix later on.
Demo of clean coding for you here: http://jsfiddle.net/nshJH/
Using <div>'s you can just use the
float: xxxx;
clear: xxxx;
This is a simple example of a clean fluid page for you that is dynamic to the content it contains. Also please note that i can change any of the width or text properties on the fly through one place in my CSS...
you can use a fixed or absolute position of the table and use bottom and top coordinates to fix the height.
table {
position: absolute;
top: 0px;
bottom: 0px;
width:100%;
}
greetings!
Tyipcally, a table will inherit the height of the content provided that the columns have a defined width using either percentage of the total table width or absolutel pixel "px" definitions. IN addition, be sure that the table rows do not have a specified height i.e. 'height: 30px'.
Code Solution:
Copytable {
width: 700px;
}
table tr td {
width: 350px;
height: auto;
}
A row cannot inherit inherit from the cells, as an element cannot inherit from its descendants, only from ascendants. But the calculation of a table row height takes the cell height requirements into account automatically, by the table height algorithms.
This happens in the example presented, too. Using the style sheet given and the simplest possible table markup, the result is as requested, apart from vertical alignment. That alignment is a separate issue and easily handled with td { vertical-align: top }.
If your page does not behave that way, please provide an example that demonstrates the issue (HTML and CSS code).
I had the same problem with an HTML table containing only images. After changing the doctype to HTML 5, Chrome, Firefox and IE displayed the table cells with a height larger than the image whereas before the cells were just as big as the images they contained.
It seems that for HTML 5 the browsers will size the table cells no smaller than your font-size and line-height would allow for text content. So to achieve the same look as before I used the following inline CSS rules:
<table style="font-size: 1px; line-height: 0;">
...
</table>
Have you tried removing all the extra inline CSS and trying it that way?
Also, see this question
Anyway, you're changing from HTML 4 transitional doctype to HTML 5, so you can probably find your answer in the HTML5 specs.
But, if you don't want to do a lot of reading, here's some advise: I've seen people have success with using em instead of px. Your issue is that some situations the line-height will not display the same in HTML5 as it did in 4-transitional. Try removing all your inline CSS (and, preferably, add a stylesheet!!), then slowly adding in and playing with the padding, etc, may reveal your problem.