Element: clientWidth property - Web APIs | MDN

Value

An integer.

Examples

An example element with large padding, border and margin. clientWidth is the inner width of the element including its padding, and excluding its margin, border, and vertical scrollbar.

Specifications

Specification
CSSOM View Module
# dom-element-clientwidth

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.