Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/04/2008, 14:49
guilledocke
 
Fecha de Ingreso: noviembre-2002
Ubicación: Avellaneda
Mensajes: 247
Antigüedad: 21 años, 5 meses
Puntos: 0
Altura 100% en div contenedor - CSS

Hola, busque algo que me pueda ayudar y no encontre nada , alguien sabe como solucionar para firefox el alto al 100% de un div contenedor??

les dejo el codigo

Código:
</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>
CSS
Código:
body {
	margin: 0px;
	text-align: center;
	height: 100%;
}

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

#interior {
	width: 500px;
	height: 500px;
	margin-left: 100px;
	float: left;
}
__________________
www.elumina.com.ar