Position

Control how an element is placed in the document.

The position property determines if an element participates in the normal layout flow or if it is removed and positioned manually.

Values

ValueDescription
RelativeDefault. The element remains in the document flow. inset offsets move it visually, but it still takes up space in its original location.
AbsoluteThe element is removed from the flow. It is positioned relative to its nearest positioned ancestor (parent with non-default position) or the root.

Example

Loading Preview…

Next Steps

© 2026 ByteLand Technology Limited