![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|
|
#1
|
||||
|
||||
|
Tienes razon roman, buscando por ahi, me encontre con que height no es un atributo valido para una tabla, al parecer nunca lo fue pero a algunos navegadores parece que no les importaba
Pero dandole vueltas aqui te dejo una solucion valida, que pasa las pruebas de validator.w3.org Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Prueba</title>
</head>
<body style="height: 100%">
<table style="height: 100%" width="639" border="1">
<tr>
<td>Prueba</td>
</tr>
</table>
</body>
</html>
Como se nota que no tenia nada mejor que hacer |
|
#2
|
||||
|
||||
|
ok gracias a ambos.
Saludos. |
|
#3
|
||||
|
||||
|
bueno, acabo de provar el código que me das seoane pero me funciona unicamente con IE, no con Firefox.
Alguna otra forma de poder solucionar esto? Saludos. |
|
#4
|
||||
|
||||
Con la prisa no se me ocurrio probarlo en otro navegador y eso que yo uso opera normalmente, pero no pasa nada faltaba por añadir un style. Bueno, la cosa queda asi:Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html style="height: 100%">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Prueba</title>
</head>
<body style="height: 100%">
<table style="height: 100%" width="639" border="1">
<tr>
<td>Prueba</td>
</tr>
</table>
</body>
</html>
Edito: Si queremos que siga pasando la validacion de http://validator.w3.org/ la propiedad style no se puede usar dentro de la etiqueta html. Asi que podemos usar algo como esto: Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Prueba</title>
<style type="text/css">
html, body
{
height:100%;
}
</style>
</head>
<body>
<table style="height: 100%" width="639" border="1">
<tr>
<td>Prueba</td>
</tr>
</table>
</body>
</html>
Última edición por seoane fecha: 16-05-2006 a las 21:09:31. |
|
#5
|
||||
|
||||
|
Perfecto!
![]() Gracias de nuevo. Saludos. |
|
#6
|
|||
|
|||
|
yo para solucionar eso regularmente me iba a propiedades de pagina y ponia margen top = 0 px , no se que tan poco profesional sea eso.
queda algo asi: Código:
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
margin-top: 0px;
}
-->
</style></head>
<body>
<table width="500" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
</body>
</html>
|
|
#7
|
||||
|
||||
|
reevil no estaria mal que leyeras todas las respuestas antes de responder. El codigo que muestras, no funciona, precisamente porque usas el atributo height que no es valido para tablas. Algo que ya habiamos aclarado en las respuestas anteriores
![]() |
![]() |
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Duda sobre servidores de alto desempeño | Zeta | Debates | 5 | 05-12-2005 20:02:02 |
| Saber el campo con valor mas alto | ilichhernandez | Conexión con bases de datos | 2 | 10-11-2005 02:00:44 |
| El número primo más alto conocido | Investment | Noticias | 6 | 03-03-2005 20:55:09 |
| pasar por alto el password de IB.4.2 desde delphi 3. | GCASTILLO | Firebird e Interbase | 1 | 01-10-2004 09:29:12 |
| Una cena de alto capote | __cadetill | Humor | 0 | 24-07-2003 14:40:02 |
|