Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/08/2010, 10:29
TheDark03
 
Fecha de Ingreso: mayo-2010
Ubicación: Lima, Peru.
Mensajes: 176
Antigüedad: 13 años, 10 meses
Puntos: 6
Respuesta: ¿Cómo usar el 100% de la altura?

Hola...
solo agrega la parte q te falta... y ya lo tienes
Código CSS:
Ver original
  1. *{
  2. margin: 0;
  3. padding: 0;
  4. }
  5.  
  6. html {
  7. height : 100%;
  8. }
  9. body {
  10. height:100%;
  11. }
  12.  
  13. #web {
  14.     width:100%;
  15.     height:100%;
  16.     background-color:#fff;
  17.     }
  18.    
  19. #header {
  20.     width: 100%;
  21.     height: 150px;
  22.     background-color: black;
  23.     }
  24.  
  25. #menu {
  26.     width: 300px;
  27.     height: 300px;
  28.     background-color: red;
  29.     float: left;
  30.     }
  31.    
  32. #contenido {
  33.     width: 100%;
  34.     height: 300px;
  35.     background-color: blue;
  36.     }
  37.  
  38. #footer {
  39.     width: 100%;
  40.     height: 50px;
  41.     background-color: grey;
  42.     }

Saludos DTB