clientLeft property
int
get
clientLeft
The width of the left border of an element in pixels. It includes the
width of the
vertical scrollbar if the text direction of the element is right-to-left
and if there
is an overflow causing a left vertical scrollbar to be rendered.
clientLeft
does not include the left margin or the left padding.
clientLeft
is read-only.
Note: This property will round the value to an integer. If you need a fractional value, use
element.getBoundingClientRect
.
Note: When an element has
display: inline
,clientLeft
returns0
regardless of the element's border.
Implementation
external int get clientLeft;