ClientWidth and clientHeight

The return value

The content + padding portion of the element is returned



Both properties are read-only and cannot be modified, and will not work if you assign a value to clientWidth.

OffsetWidth and offsetHeight

The return value

Includes content + padding + border