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
views:
51answers:
3
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
2010-03-08 19:13:51
+3
A:
You can do this easily (and without jQuery) with element.offsetWidth and element.offsetHeight
Robusto
2010-03-08 19:15:58
+1 for not suggesting jQuery on the first place...
Sinan Y.
2010-03-08 19:29:23