I have a container (thetext1) with a set height of 360px. \"thetext1\" contains two divs - one on the left and one floated to the right - into both of which content is deli
I had the same problem, and I noticed one thing, the div needs to be visible when you call .height();
But, even if the div is visible, the parents of this div needs to be visible. So you must garantee that parents div are visible (display != none)
writing a $('#div').parent().show(); will make a parent visible, you may need anothers parent().show();