views:

51

answers:

3

i want to know the width and height of the html elements like divs body and tables.
is this possible ? i want the calculated width,height and not the one that i apply to the elements.
using jquery would be fine.
thanks

A: 

The jQuery dimensions functions will be able to help. For example, the height() function

Get the current computed height for the first element in the set of matched elements.

Vincent Ramdhanie
A: 

See: http://api.jquery.com/height/

mojbro
+3  A: 

You can do this easily (and without jQuery) with element.offsetWidth and element.offsetHeight

Robusto
+1 for not suggesting jQuery on the first place...
Sinan Y.