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)
var style = window.getComputedStyle(document.getElementById("Example"), null); style.getPropertyValue("height");
The above version will work in modern browsers. Please check currentStyle for IE browsers.
currentStyle
1.4m articles
1.4m replys
5 comments
57.0k users