Hie Everyone100% div height
Estoy diseñando una página web con un diseño fluido. Quiero mantener un ancho del 100% y una altura del 100%. El problema es que no sé cómo mantener divs "izquierda" y "derecha" con una altura del 100% dentro de su div principal, "envoltorio".
<div id="container" style="width:100%; height:100%">
<div id="header" style="width:100%; height:100px">
</div>
<div id="wrapper" style="width:100%; height:(100% - 100px)">
<div id="left" style="width:250px; height:(100% - 100px)">
</div>
<div id="right" style="width:(100% - 250px); height:(100% - 100px)">
</div>
</div>
</div>
Por favor ayuda.
Respuesta de doctype.com
CSS
html, body{
height: 100%;
margin: 0;
padding: 0;
}
HTML
<body>
<div id="container" style="width:100%; height:100%; position: absolute;">
<div id="header" style="width:100%; height:100px;">
header
</div>
<div id="wrapper" style="width:100%; height:auto; position: absolute; top: 100px; bottom: 0;">
<div id="left" style="width:250px; height:100%; float:left;">
left
</div>
<div id="right" style="width: 250px; height:100%; float:right; ">
right
</div>
main content
</div>
</div>
</body>
Es posible que tenga una mejor oportunidad de respuesta si lo solicitó en el sitio afiliado doctype.com – Spoike