What is offsetHeight, clientHeight, scrollHeight?

To know the difference you have to understand the box model, but basically: clientHeight: returns the inner height of an element in pixels, including padding but not the horizontal scrollbar height, border, or margin offsetHeight: is a measurement which includes the element borders, the element vertical padding, the element horizontal scrollbar (if present, if rendered) … Read more