HTML DOM Element offsetLeft
HTML DOM Element offsetLeft Property
The offsetLeft property is a read-only property and it returns the left position relative to the parent in pixels. The returned value contains:
- the left padding, scrollbar, and border of the parent
- the left position, and margin of the element
Syntax:-
Its syntax is:- element.offsetLeft
Return:-
Its return is:- left position of an element in pixels