Ver Mensaje Individual
  #6 (permalink)  
Antiguo 01/01/2011, 11:14
KurozakiIchigo
 
Fecha de Ingreso: noviembre-2010
Ubicación: On a world of Anime & Web.
Mensajes: 137
Antigüedad: 13 años, 5 meses
Puntos: 4
Respuesta: Problemas para lograr height 100%

LISTO!!!
Intenta este codigo:
Código HTML:
Ver original
  1. <head><title>height 100%</title>
  2. <style type="text/css">
  3. * {margin:0; padding:0; border:0;}
  4. html, body {width: auto; height: 100%;}
  5.  
  6. #contenedor {
  7. background-color: #00F;
  8. width: 80%;
  9. height: 100%;
  10. margin: 0 auto;
  11. }
  12.  
  13. /* EL SIGUIENTE CODIGO NO IMPORTA */
  14. #contenido {
  15. font-size: 4em; font-family: 'tahoma', verdana, arial; color: #fff; text-align:center;
  16. }
  17. /* NO IMPORTA OK */
  18.  
  19. <div id="contenedor">
  20.     <div id="contenido">CONTENIDO</div>
  21. </div>
  22.  
  23. </body>
  24. </html>

Funciona en: IE, Firefox, Opera, Chrome.