Getting 2 divs to match each other's height?

Lets say you have 2 divs, one layered on top of the second. How do you get them both to match each other’s heights (the shorter one expanding to the same size as the larger)