Ver Mensaje Individual
  #4 (permalink)  
Antiguo 10/04/2008, 09:24
Avatar de Mikmoro
Mikmoro
Colaborador
 
Fecha de Ingreso: octubre-2006
Ubicación: K-pax
Mensajes: 7.228
Antigüedad: 17 años, 6 meses
Puntos: 280
Re: Altura 100% en div contenedor - CSS



¿No te ha funcionado?

http://www.araudi.net/guille.html

¿Seguro que preguntabas por cómo poner el 100% de alto para firefox?

Este código hace eso que te digo, te lo garantizo:

Cita:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="es-es">
<head>
<title>Cien por cien de alto</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
body {
margin: 0px;
text-align: center;
height: 100%;
}

#contenedor {
width: 700px;
background-color: #CCCCCC;
margin-left: auto;
margin-right: auto;
height: auto;
min-height: 100%;
}

#interior {
width: 500px;
height: 500px;
margin-left: 100px;
float: left;
} </style>
</head>
<body>
<div id="contenedor">
<div class="clear"></div>
<div id="interior">
Don't set the height of a div to 100% unless it's container element has a specific height set. 100% of auto = auto. If Microsoft value CSS compliance then IE7 will likely fix the bug in IE6 that makes it respond to height=100% because it is wrong according to the CSS specification. So don't waste any more time thinking about "how can I get this trick to work in other browsers?".
Don't set the height of a div to 100% unless it's container element has a specific height set. 100% of auto = auto. If Microsoft value CSS compliance then IE7 will likely fix the bug in IE6 that makes it respond to height=100% because it is wrong according to the CSS specification. So don't waste any more time thinking about "how can I get this trick to work in other browsers?".
</div>
<div class="clear"></div>
</div></body>
</html>
que es tú código con el añadido que te dije.

Cita:
alguien sabe como solucionar para firefox el alto al 100% de un div
Quizá preguntabas por otra cosa, y no he entendido qué querías decir con "solucionar para Firefox".

Mikel.