How do you get an element\'s inner height, without padding and borders?
No jQuery, just pure JS, and a cross-browser solution (IE7 included)
You can simply use the clientHeight and clientWidth properties.
clientHeight
clientWidth
MDN web doc for Element.clientHeight — clientWidth works exactly the same way.