Center a div without flex or grid
Classic positioning tricks interviewers still love — know when translate vs auto margins wins.
Classic CSS interview questions with live previews next to the rule that produces them. Toggle techniques to compare behaviour side by side.
Category mastery
3 of 10 patterns mastered
Classic positioning tricks interviewers still love — know when translate vs auto margins wins.
static, relative, absolute, fixed, sticky — containing blocks and scroll behaviour.
Explain rendered width when padding and borders join the party.
IDs, classes, inline styles, !important — tie-break order without guessing.
overflow, white-space, text-overflow — plus flexGotchas.
Why z-index: 9999 sometimes loses — opacity, transforms, and isolation.
none vs visibility vs opacity vs off-screen patterns for accessibility.
:hover vs ::before — syntax, specificity hooks, and interview narrations.
Adjacent siblings, empty blocks, and padding hacks that reset collapse.
Theme tokens, inheritance, fallbacks, and runtime updates vs preprocessor vars.