Courses / CSS
14. Positioning
Positioning controls the placement of an element in the document.
1 min read Chapter 14 of 32
CSS
Positioning
Positioning controls the placement of an element in the document.
"I want my header to stay at the top of the page while scrolling."
Positioning in CSS determines how elements are placed in relation to their normal position and other elements. It includes values like static, relative, absolute, fixed, and sticky.
"I want my header to stay at the top of the page while scrolling."
Positioning in CSS determines how elements are placed in relation to their normal position and other elements. It includes values like static, relative, absolute, fixed, and sticky.