<div class="outer">
<div class="div1">
This div has min-height set, so it takes that much height even if the content is too short. It'll automatically fit to the content, if the content size is large.
</div>

<div class="outer">
<div class="div1">
This div has min-height set, so it takes that much height even if the content is too short. It'll automatically fit to the content, if the content size is large.
</div>