Applied position property is static
Default value. Elements render in order, as they appear in the document flow
The element is positioned relative to its first positioned (not static) ancestor element
Ex : The ancestor element (Green Container) position value is relative so the DIV 2 element positioned relative to that element
To see the changes click the style attribute mentioned the Green Container on right side top.
The element is positioned relative to the browser window
The element is positioned relative to its normal position, so "left:20px" adds 20 pixels to the element's LEFT position
The element is positioned based on the user's scroll position A sticky element toggles between relative and fixed, depending on the scroll position. It is positioned relative until a given offset position is met in the viewport - then it "sticks" in place (like position:fixed).