HTML - problema con altura de tabla html

 
Vista:

problema con altura de tabla html

Publicado por axl000 (1 intervención) el 08/07/2008 05:36:32
hola, mi problema es que tengo una tabla con hight 100% y dentro de una celda de esta tengo otra tabla y quiero que este tambien con higth 100%, lo logro pero el problema es que al parecer se "pisan" un poco y el scroll se activa (la barrita de al lado del navegador) siendo que el contenido de la pagina es tan poco que no deberia estar activo, se entiende?

pego mi pagina:

<!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>
<title>Table Height Test</title>
<style type="text/css">
<!--
html, body {
height: 100%;
margin: 0;
padding: 0;

}
//-->
</style>
</head>
<body>
<table style="height: 100%; width: 100%;" bgcolor="Silver">
<tr>
<td style="height: 100%;">

<table style="height: 100%">
<tr>
<td bgcolor="Red" style="height: 100%;">PROBANDOOO
</td>
<td>
</td>
</tr >
</table>

</td>
</tr>
</table>
</body>
</html>

mi idea es que esa columna roja complete la pantalla desde arriba a abajo, porque igual se ve plateado fuera de ella y que el scroll no este activo.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:problema con altura de tabla html

Publicado por Hugo (1 intervención) el 08/07/2008 19:20:16
No sé si es lo que buscas...pero aquí te envío una alternativa.

<!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>
<title>Table Height Test</title>
<style type="text/css">
<!--
html, body {
height: 100%;
margin: 0;
padding: 0;

}
//-->
</style>
</head>
<body>
<table style="height: 100%; width: 100%;">
<tr>
<td style="width:10%"; bgcolor="Red"> PROBANDO</td>
<td bgcolor="Silver"></td>
</tr>
</table>
</body>
</html>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar