I want to make a table with a cell that spans on two rows. The second row must have the height size as minimum as possible. Example:
html:
<table>
<tr id="row-1">
<td>
1st row
</td>
<td rowspan="2">
a <br />
a <br />
a <br />
a <br />
a <br />
a <br />
a <br />
a <br />
</td>
</tr>
<tr id="row-2">
<td>
2nd row
</td>
</tr>
</table>
css:
td
{
border: 1px solid black;
}
#row-2
{
height: 1px;
}
http://jsfiddle.net/xp7vz/
It works on Firefox (19.0.2). On Chromium (25.0.1364.160), the row with the minimum height is the first one!
EDIT: The problem is caused by this bug: http://code.google.com/p/chromium/issues/detail?id=78724
How can I hack it with CSS? Currently I'm using JS, setting the 1st row height equal to the height of the rowspan cell minus the height of the second row.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…