Retrieves the type of positioning used for the element.
Syntax
object.style.position
Remarks
The default is static, which means there is no special positioning, and the element obeys the layout rules of HTML.
An absolutely positioned element is always relative to either the next positioned parent or, if there isn't one, the BODY by default. Values for left and top are relative to the upper-left corner of the next positioned element in the hierarchy. Be sure to note the Applies To listings for elements that can be relatively and absolutely positioned.
See Positioning for an overview on how to use dynamic positioning.