how do i get the height of an page element, such as a DIV

bear in mind that the height will not be fixed, as the box will expand to fill the data.

is it something to do with scroll area?