Test case:

Problem:

The height of the red div should equals to the height of the blue (and yellow) div.
It works right with Opera 9.2, Firefox 2, Camino 1.0.4 and Internet Explorer 7.

Workaround:

If you set position absolute to the red div, it's height will expands along with the blue div.

Result: