Skip to main content
Journey Uncommon Logo
JourneyUncommon
CSS · PRACTICE

CSS interview questions.

CSS decides layout and paint. Most bugs come from the cascade, stacking contexts, and containing blocks rather than from the properties themselves.

527questions
128easy
198medium
201hard

Specificity maths, margin collapsing, what creates a new stacking or containing block, flex versus grid sizing, and which properties can be animated cheaply.

Where it shows up: Frontend roles, design-system teams, and anywhere responsive or themeable UI is built.

Sample CSS questions

Twenty real CSS questions from the library, code snippet included. Nothing here is paraphrased for search engines. It is the same text a signed-in user sees.

Sign in to answer

Everything above is free to read. Answering needs a free account.

We keep the correct answer, the explanation and the scoring behind sign-in so the platform stays honest, which is why the answer options and the worked explanation for every CSS question stay behind a free account. Signing in is free and takes a few seconds.

CSS topics covered

43 distinct CSS topics are tagged across the library. These are the real topic labels stored on the questions, not a hand-written list.

  • color and background (29)
  • grid template rows cols areas (26)
  • the box model (25)
  • attribute and nth-child (25)
  • font-size family (24)
  • keyframes (18)
  • transforms (17)
  • before after pseudo-elements (16)
  • cascade order and origins (16)
  • width height (15)
  • block formatting context (15)
  • contain layout paint size (15)
  • transitions and easing (15)
  • not is where (15)
  • combinators (14)
  • stacking contexts (13)
  • calc clamp min max (12)
  • logical properties (12)
  • margin padding (11)
  • custom properties (11)
  • sticky (10)
  • color spaces oklch color-mix (10)
  • GPU compositing layer promotion (10)
  • property registration (10)
  • containing-block resolution (10)
  • scroll-driven animations (10)
  • auto-fit auto-fill minmax (9)
  • container-query internals (9)
  • responsive type clamp (8)
  • reflow paint composite pipeline (8)
  • scope (8)
  • layer cascade layers (8)
  • content-visibility (7)
  • specificity algorithm (7)
  • gradients (7)
  • aspect-ratio (7)
  • z-index everyday (6)
  • subgrid track inheritance (6)
  • has relational selector (6)
  • will-change cost (6)
  • background-size (5)
  • object-fit background-size (5)
  • object-fit (5)

Search and filter every CSS question

Difficulty