views:

28

answers:

1

After setting the height of some element (say a div) to auto, still can I get the height of this div in pixel or may be in some other units

+4  A: 

You can use element.clientHeight or element.offsetHeight.

Or if jQuery is a choice, something like:

$("#element").height();
Russell Dias