CSS2 min read
CSS Positioning: static/relative/absolute/fixed/sticky
How positioning works, stacking contexts, and what trips people up in interviews.
#Layout#Interview
Feb 08, 2026Practice
Practice
Search by concept, narrow to a roadmap, or pick a tag to focus on the exact topic you want to rehearse.
6 articles
How positioning works, stacking contexts, and what trips people up in interviews.
The interview classic: centering with flexbox, grid, absolute positioning, and margin auto.
Grid tracks, fr units, areas, and when Grid beats Flexbox.
Flex container vs items, main/cross axis, and alignment properties that interviewers ask about.
Content, padding, border, margin; box-sizing; and how it affects layout calculations.
Understanding the differences between CSS Grid and Flexbox and when to use each layout system.