Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/03/2010, 13:10
Avatar de JessicaTJ
JessicaTJ
 
Fecha de Ingreso: enero-2007
Ubicación: 127.0.0.1
Mensajes: 472
Antigüedad: 17 años, 3 meses
Puntos: 25
Ajustar Div Ke Tome Altura Automatica De Divs Internos

Hola chicos, estoy trabajando un sistemita para unos divs, 2 dentro de 1, flotando a la izquierda y derecha del mismo, solo ke el div contenedor no me toma la altura automaticamente, no se ajusta por si solo, ya hice todo lo ke se me ocurrio y no doy una, alguna idea?

Código HTML:
<!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=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#container {
	margin: 0 auto 0 auto;
	border: 1px solid #000;
	color: #000;
	width: 700px;
	height: auto;
}

#right {
	border: 1px solid #03F;
	float: right;
	width: 300px;
	height: auto;
}

#left {
	border: 1px solid #666;
	float: left;
	width: 300px;
	height: auto;
}
</style>
</head>

<body>
<div id="container">
    <div id="left">123<br />456<br />789<br />0</div>
    <div id="right">123<br />456<br />789<br />0</div>
</div>
</body>
</html> 
De verdad agradecere mil su ayuda
__________________
٩(͡๏̯͡๏)۶ || ٩(͡๏̯͡๏)۶