I have a simple problem where I have 2 divs, 1 is relative positioned. The child element is absolute positioned. This child has varying height.
The code so far:
Absolute positionned elements are outside the flow so parents can't adjust their height.
But you can simply use:
#wrap { width: 100%; /* useless */ background: #ccc; overflow:hidden; /* establish a new formatting context */ min-height: 20px; } #inner { width:30%; background: #000; float:right; }