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
| Value | Description |
|---|---|
Relative | Default. The element remains in the document flow. inset offsets move it visually, but it still takes up space in its original location. |
Absolute | The 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…