CSS Position
CSS Position: Static, Relative, Absolute, Fixed, Sticky.
Updated
- Static (Apprentice): Static is the default position, where elements sit in the normal flow of the page and top and left don't move them.
- Relative (Apprentice): Relative positioning moves an element away from its own normal place, and keeps the space it would have used.
- Absolute (Apprentice): Absolute positioning takes an element out of the page's flow and places it relative to its nearest positioned ancestor, usually a parent with position relative.
- Fixed (Apprentice): Fixed positioning places an element relative to the browser window, so it stays on screen while the page scrolls.
- Sticky (Apprentice): A sticky element scrolls with the page until it reaches its top offset, then stays put until its parent scrolls away.