Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/03/2015, 16:00
Avatar de rottenp4nx
rottenp4nx
 
Fecha de Ingreso: octubre-2012
Ubicación: Santiago
Mensajes: 417
Antigüedad: 11 años, 6 meses
Puntos: 36
problema height 100%

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: 100%;
  13.     }
  14.     body{
  15.         background-color: #282828;
  16.         width: 100%;
  17.         height: 100%;
  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>

Teoricamente, solo se debería rellenar y no que aparezca el scrollbar vertical
porque el body tiene 100% de altura y el hijo div container tiene 94% de alturo más los margenes de arriba y abajo de 3%, dan los 100% de altura y produce el scrollbar, me parece raro.
De antemano gracias :)