Element height determination

After setting the height of an element (e.g. div) in the car, still I can get the height of this div in a pixel or maybe in some other units

+2
source share
1 answer

You can use element.clientHeightor element.offsetHeight.

Or, if jQuery is a choice, something like:

$("#element").height();
+4
source

All Articles