- CSS Layout - The position Property - W3Schools
position: sticky; An element with position: sticky; is positioned based on the user's scroll position A sticky element toggles between relative and fixed, depending on the scroll position It is positioned relative until a given offset position is met in the viewport - then it "sticks" in place (like position:fixed)
- position - CSS | MDN - MDN Web Docs
The position CSS property sets how an element is positioned in a document The top, right, bottom, and left physical properties and the inset-block-start, inset-block-end, inset-inline-start, and inset-inline-end flow-relative logical properties can be used to determine the final location of positioned elements
|