Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/03/2015, 18:09
Avatar de NueveReinas
NueveReinas
 
Fecha de Ingreso: septiembre-2013
Ubicación: No tan Buenos Aires
Mensajes: 1.101
Antigüedad: 10 años, 8 meses
Puntos: 145
Respuesta: Problemas con divs

Prueba con esto: http://www.cssreset.com/how-to-keep-...page-with-css/

Dejo el código por si algún día la página no está disponible:

Código HTML:
Ver original
  1.     <div id="wrapper">
  2.         <div id="header"></div>
  3.         <div id="content"></div>
  4.         <div id="footer"></div>
  5.     </div>
  6. </body>

Código CSS:
Ver original
  1. html,
  2. body {
  3.     margin:0;
  4.     padding:0;
  5.     height:100%;
  6. }
  7. #wrapper {
  8.     min-height:100%;
  9.     position:relative;
  10. }
  11. #header {
  12.     padding:10px;
  13.     background:#5ee;
  14. }
  15. #content {
  16.     padding:10px;
  17.     padding-bottom:80px;   /* Height of the footer element */
  18. }
  19. #footer {
  20.     width:100%;
  21.     height:80px;
  22.     position:absolute;
  23.     bottom:0;
  24.     left:0;
  25.     background:#ee5;
  26. }

Código CSS:
Ver original
  1. <!--[if lt IE 7]>
  2.     <style type="text/css">
  3.         #wrapper { height:100%; }
  4.     </style>
  5. <![endif]-->

Saludos.
__________________
¿Te sirvió la respuesta? Deja un +1