This example shows the difference between the dimension retrieved by the
clientWidth
and the dimension retrieved by the
offsetWidth
, the latter including the width of scrollbars.
clientWidth
offsetWidth