clientHeight vs offsetHeight
5/10/2022, 2:38:08 PM
by Leo Voon
clientHeight = the height of an element + the vertical (y) padding.
offsetHeight = the height of the element + the vertical (y) padding + the top and bottom borders + the horizontal scrollbar (if it’s available).