Currently i am setting absolute height values. But sometimes i am being have to set a lot higher than required because of dynamic pages. Is it possible to get minimum required height of div ? i mean the height value which will show all the elements like height auto but no empty spaces will left.
I can’t set height auto because it causes too much mess. I tried and failed.
So jquery will read the div and calculate minimum required height value for displaying all elements. Is this possible ?
Thank you.
As Clive said, there is usually no reason to do this. However, if you need to get height of all inside elements, you can use something like this:
Function outerHeight(true) counts height of the element including border and margin. See http://api.jquery.com/outerHeight/ for details.