Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/03/2015, 16:19
Avatar de AngelKrak
AngelKrak
 
Fecha de Ingreso: noviembre-2014
Mensajes: 917
Antigüedad: 9 años, 5 meses
Puntos: 91
Respuesta: problema height 100%

no soy un experto en CSS pero porque 100% en html y body, si el container tiene 94%

en todo caso ponle 94% tanto al Body, como al HTML igual que al Container (ese es tu problema)

Código HTML:
Ver original
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.     <meta charset="UTF-8">
  4.     <title>rebelArte</title>
  5. </head>
  6.     *{
  7.         padding: 0;
  8.         margin: 0;
  9.     }
  10.     html{
  11.         width: 100%;
  12.         height: 94%;
  13.     }
  14.     body{
  15.         background-color: #282828;
  16.         width: 100%;
  17.         height: 94%;
  18.     }
  19.     #container{
  20.         display: block;
  21.         width: 94%;
  22.         height: 94%;
  23.         margin: 3% 3%;
  24.         background: #fff;
  25.         min-height: 100%;
  26.        
  27.     }
  28.     <div id="container">Hola Mundo!</div>
  29. </body>
  30. </html>

Demo:
http://codepen.io/AngelKrak/pen/WbPYRq