¿Es posible fijar la altura de una fila (tr) en una tabla?¿Cómo arreglar la altura de TR?
El problema aparece cuando reduzco la ventana del navegador, algunas filas comienzan a jugar y no puedo arreglar la altura de la fila.
He intentado varias maneras: tr width="20"/tr style="height:20px"/td height="20"/td style="height:20px"
estoy usando IE7
Estilo
.tableContainer{
color:#0076BF;
margin: -10px 0px -10px 0px;
border-spacing: 10px;
empty-cells:show;
width:90%;
text-align:left;
}
.tableContainer tr td{
white-space:nowrap;
text-align:left;
}
código HTML.
<table class="tableContainer" cellspacing="10px">
<tr style="height:15px;">
<td>NHS Number</td>
<td> </td>
<td>Date of Visit</td>
<td> </td>
<td colspan="3">Care Time Started</td>
<td> </td>
<td rowspan="2" style="text-align:right;vertical-align:bottom;">☑</td>
<td rowspan="2" style="font-weight:bold;vertical-align:bottom;">Tick when<br/> care starts</td>
</tr>
<tr>
<td width="90" class="tableContainerRow2"> </td>
<td > </td>
<td width="80" class="tableContainerRow2"> </td>
<td > </td>
<td width="40" class="tableContainerRow2"> </td>
<td width="5">:</td>
<td width="40" class="tableContainerRow2"> </td>
<td > </td>
</tr>
</table>
Gracias por el consejo, parece que funciona, pero parece un poco desordenado. – Amra
Feliz de ayudar :-) Lamentablemente, desordenado el código suele ser el caso en hacks y soluciones temporales. –
Yo uso [código] .container {ancho: 100%; altura máxima: 40px; desbordamiento: oculto; } [/ code] y [code]
[/ code]. –