Do you mean the hidden height of the content?
Vega - yes. The height of the contents of the div, including the part that hides when overflowing
Just set auto and get .height and return it to a fixed height.
var $el = $('#test'); var tmp = $el.css('height'); var actualHeight = $el.css('height', 'auto').height(); $el.css('height', tmp); alert(actualHeight);
DEMO: http://jsfiddle.net/sKZfF/
source share