See below. Imagine #inner content grew. Using Jquery how can i make the outer div recalculate its height so that it should all of the inner content. The overflow is required.
<div id="outer" style="height:100px; overflow:hidden;">
<div id="inner">
</div>
</div>
this may helps u
jQuery.outerHeight()
to include margin write
trueinside function like below :DEMO