Control formatting context with block, inline-block, flex, grid, and hidden. Position utilities—relative, absolute, fixed, sticky—combine with inset helpers top-0, inset-x-0, z-10.
Choose the right display
flex— one-dimensional rows or columnsgrid— two-dimensional trackshidden— removes from layout (display: none)
Review CSS display and display utilities if the formatting context feels unfamiliar.
Self-check
- When is
sticky top-0useful? - What does
hiddendo to accessibility tree visibility?