Ver Mensaje Individual
  #4 (permalink)  
Antiguo 02/05/2014, 01:18
Avatar de pzin
pzin
Moderata 😈
 
Fecha de Ingreso: julio-2002
Ubicación: Islas Canarias
Mensajes: 10.488
Antigüedad: 21 años, 9 meses
Puntos: 2114
Respuesta: Hacer que div tome el 100% de height de div contendor

Bienvenido al foro.

No tengo muy claro si es un bug (que está reportado) o realmente sigue estrictamente la especificación:

Cita:
<percentage>
Specifies a percentage height. The percentage is calculated with respect to the height of the generated box's containing block. If the height of the containing block is not specified explicitly (i.e., it depends on content height), and this element is not absolutely positioned, the value computes to 'auto'. A percentage height on the root element is relative to the initial containing block.
Entonces el problema es ese min-height, ya que no es un valor definido de forma explícita. Prueba a añadirle a ese contenedor:

Código CSS:
Ver original
  1. height: 1px;

Manteniendo la altura mínima, claro. Tal vez funcione. No puedo hacer pruebas ahora mismo. Pero en teoría debería.