Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/10/2006, 06:39
senseye
 
Fecha de Ingreso: octubre-2006
Mensajes: 2
Antigüedad: 17 años, 5 meses
Puntos: 0
Altura del contenedor 100% del contenido

Saludos, y cervecitas frescas para todos

Es mi primer mensaje y ya entro preguntando... pero es que todavía estoy demasiado "verde" para responder en los otros hilos. Es lo que tiene la ignorancia: mejor callado que meter la gamba.

Estoy peleándome con las cascadas y de momento ganan ellas por goleada . El tema está en que intento que un <div> contenedor tenga una altura del 100% y que aumente su altura a medida que otros <div> que están en su interior aumentan su contenido, de forma que quede como fondo blanco. Seguro que el tema será recurrente, pero llevo bastantes horas utilizando el buscador pero no doy con la solución (igual es que para las CSS soy un poco... digamos "obtuso", no sé...).
La idea es que los <div> "menuizquierdo" y "menuderecho" irán aumentando de tamaño y su parte baja tiene que encajar siempre con el fondo de la ventana, pero el "contenedor" no crece (y ellos tampoco encajan). En el <div> "textocentral" he copiado repetidas veces un párrafo para que se vea el problema que me encuentro ahora.

A ver si alguien puede hecharme un cable .

Gracias

Código:
	<head>
		<meta http-equiv="content-type" content="text/html;charset=iso-8859-1"/>
		<title>prueba1</title>
		<style type="text/css" media="screen">
		
<!--body        { color: #000; background-color: #666 }

#contenedor { background-color: #fff; margin-left: -430px; position: absolute; top: 0; left: 50%; width: 862px; height: 100%; min-height: 100%; border-right: 1px solid #666; border-left: 1px solid #666 }

#cabecera    { background-color: #f66; position: absolute; top: 0; left: 0; width: 862px; height: 90px }

#menuizquierdo   { background-color: #fc0; position: absolute; top: 90px; left: 690px; width: 170px; height: 100% }

#menuderecho       { background-color: #cf9; position: absolute; top: 250px; left: 0; width: 150px; height: 100% }

#textocentral      { background-color: #9cf; position: absolute; top: 160px; left: 180px; width: 490px }--></style>
	
	</head>

	<body bgcolor="#ffffff">
	<div id="contenedor">
	<div id="cabecera"></div>
	<div id="menuizquierdo"></div>
	<div id="menuderecho"></div>
	<div id="textocentral">
	<p>Twenty years from now you will be more disappointed by the things that you didn t do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. - Mark Twain Twenty years from now you will be more disappointed by the things that you didn t do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. - Mark Twain Twenty years from now you will be more disappointed by the things that you didn t do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. - Mark Twain Twenty years from now you will be more disappointed by the things that you didn t do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. - Mark Twain Twenty years from now you will be more disappointed by the things that you didn t do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. - Mark Twain Twenty years from now you will be more disappointed by the things that you didn t do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. - Mark Twain Twenty years from now you will be more disappointed by the things that you didn t do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. - Mark Twain Twenty years from now you will be more disappointed by the things that you didn t do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. - Mark Twain Twenty years from now you will be more disappointed by the things that you didn t do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. - Mark Twain Twenty years from now you will be more disappointed by the things that you didn t do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. - Mark Twain Twenty years from now you will be more disappointed by the things that you didn t do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. - Mark Twain Twenty years from now you will be more disappointed by the things that you didn t do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. - Mark Twain Twenty years from now you will be more disappointed by the things that you didn t do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. - Mark Twain Twenty years from now you will be more disappointed by the things that you didn t do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. - Mark Twain Twenty years from now you will be more disappointed by the things that you didn t do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. - Mark Twain Twenty years from now you will be more disappointed by the things that you didn t do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. - Mark Twain Twenty years from now you will be more disappointed by the things that you didn t do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. - Mark Twain
	</p></div>
	</div>
	</body>

</html>