For some reason, I can't seem to control the height of this table. I've set it to a maximum of 20px but all the rows are still showing.
Here is the CSS:
table {
border:1px solid black;
overflow:hidden;
height:20px;
max-height:20px;
}
And here is the HTML code:
<table>
<tr><td>This is a row</td></tr>
<tr><td>This is a row</td></tr>
<tr><td>This is a row</td></tr>
<tr><td>This is a row</td></tr>
<tr><td>This is a row</td></tr>
<tr><td>This is a row</td></tr>
<tr><td>This is a row</td></tr>
<tr><td>This is a row</td></tr>
</table>
You can view an example at this link.