A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetParent below:

HTMLElement: offsetParent property - Web APIs

HTMLElement: offsetParent property

Baseline Widely available

The HTMLElement.offsetParent read-only property returns a reference to the element which is the closest (nearest in the containment hierarchy) positioned ancestor element.

A positioned ancestor might be:

If there is no positioned ancestor element, the body is returned.

Note: offsetParent returns null in the following situations:

offsetParent is useful because offsetTop and offsetLeft are relative to its padding edge.

Value

An object reference to the element in which the current element is offset.

Specifications Browser compatibility

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4