CSS Position
Introduction to CSS Position
The `position` property defines the positioning method of an element, such as relative, absolute, fixed, or sticky.
Common Position Values
- relative: Positioned relative to its normal position.
- absolute: Positioned relative to the nearest positioned ancestor.
- fixed: Positioned relative to the viewport.
Example
div {
position: absolute;
top: 20px;
left: 30px;
}
Browser Support
Supported by all major browsers.