HTMLElement.offsetLeft
4 April 2025 (Updated 4 December 2025)
The offsetLeft property of the HTMLElement interface returns the number of pixels that the upper left corner of the element is offset to the left within the HTMLElement.offsetParent node (the nearest ancestor element).
Tagged:
Web APIs