Ver Mensaje Individual
  #3 (permalink)  
Antiguo 20/01/2011, 18:23
Avatar de naitmeir
naitmeir
 
Fecha de Ingreso: junio-2008
Ubicación: Barcelona
Mensajes: 227
Antigüedad: 15 años, 9 meses
Puntos: 0
Pregunta Respuesta: heredar altura div padre (height: auto)

No funciona poniendole auto a los dos divs ... dejo aquí el código

Código CSS:
Ver original
  1. <html>
  2. <head>
  3. <title>test</title>
  4.                  
  5. </head>
  6. <body>
  7.  
  8.     <div style="
  9.     width:      923px;
  10.     height:             auto;  
  11.     background:    #F8F8F8;
  12.     margin:     0 auto;
  13.     overflow:           hidden;
  14.     ">
  15.  
  16.         <div style="
  17.         width:          200px;
  18.         height:         auto;
  19.         background:     #1D1A16;    
  20.         float:          left;
  21.         ">
  22.  
  23.         </div> 
  24.         <div style="
  25.         float:      left;
  26.         overflow:           hidden;
  27.         width:      492px;     
  28.         ">
  29.        
  30.         </div>
  31.     </div>
  32. </body>
  33. </html>