Position Property:
- Position in css specifies how elements are positioned.
- Syntax: property: value
- Positioning values are
- static
- relative
- absolute
- fixed
- sticky
- Static:All positions are static by default.
- Relative: follows normal flow with top,left directions.
- Absolute: the element is positioned to the edge.
- Fixed: remains fixed, does't scroll with the content.
Code:
Output: