Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/11/2010, 02:14
drgore2
 
Fecha de Ingreso: noviembre-2010
Mensajes: 2
Antigüedad: 13 años, 5 meses
Puntos: 0
Ayuda con el height con IE8

Hola

Después de buscar por todos los foros, no soy capaz de resolver el siguiente problema:

Resulta que cuando pongo el DOCTYPE, el height parece que no está reconocido y no me amplía el DIV gris oscuro al tamaño de la celda cuando uso el IE8 (con firefox no pasa esto).

Os dejo aquí el ejemplo.

Gracias


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<table style="height: 100%; border-collapse:collapse;" border=1>
<tr>
<td style="border: red 1px solid; height: 20%;">fila 1</td>
<td>col2</td>
</tr>
<tr>
<td rowspan="3" style="border: red 1px solid; height: 60%; padding:5px;"><div id="Div2" style="padding:5px;height: 100%; background-color:#444444;">fila 2,3,4</div></td>
<td>col2</td>
</tr>
<tr>
<td>col2</td>
</tr>
<tr>
<td>col2</td>
</tr>
<tr>
<td style="border: red 1px solid; height: 20%;">fila 5</td>
<td>col2</td>
</tr>
</table>
</form>
</body>
</html>