Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/09/2008, 00:54
Avatar de minkweb
minkweb
 
Fecha de Ingreso: septiembre-2005
Mensajes: 443
Antigüedad: 18 años, 7 meses
Puntos: 14
Ayuda alineacion y anidacion de divs

Tengo un problema tengo un div contenedor y divs anidados y los anidados se me salen del contenedor, el contenedor no se ajusta a ellos


aqui les dejo un codigo html q da ese problema (mozilla) q es el uniko en el q he revisado

PD: no me digan q colocarle "float:left" al contenedor eso es lo q no quiero hacer

Saludos


Codigo
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">
<!--
.contenedor {

	border:10px #ff0000 solid;
        width:200px;
        height:20px;



}
.divcontenido {


	float: left;
	background-color: #D4D0C8;
	border:10px #cc0000 solid;
}

-->
</style>
</head>

<body>
<div class="contenedor">
  <div class="divcontenido">aaaaaa</div>
  <div class="divcontenido">aaaaaa</div>
  <div class="divcontenido">aaaaaa</div>
  <div class="divcontenido">aaaaaa</div>

</div>
</body>
</html> 
__________________
Juegos
Juegos iphone