Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/05/2010, 18:09
sinorfavela
 
Fecha de Ingreso: mayo-2010
Mensajes: 2
Antigüedad: 14 años
Puntos: 0
Respuesta: altura y márgenes de un div

um...
he encontrado la solución aquí: http://www.dynamicdrive.com/style/layouts/item/css-bottom-frame-layout/

truco está en:

body{
overflow: hidden;
height: 100%;
max-height: 100%;
}

#footer{
position: absolute;
bottom: 0;
width: 100%;
height: 130px; /*altura que queramos para el footer*/
}

#maincontent{
position: fixed;
bottom: 130px; /*altura del footer*/
overflow: auto;
}

además comenta dos hacks para IE6 que todavía no he probado...

* html body{ /*IE6 hack*/
padding: 0 0 130px 0; /*Set value to (0 0 HeightOfFooterDiv 0)*/
}

* html #maincontent{ /*IE6 hack*/
height: 100%;
width: 100%;
}