Test yourself under real exam conditions: 50 timed questions, 60 on the clock, pass mark 70%%. Instant score with a full review of everything you got wrong. Free — no account needed.
Exam details
Grid: 2D layout (rows AND columns), known structure.
Flexbox: 1D layout (row OR column), content-driven.
Either works. display: grid; place-items: center; or display: flex; align-items: center; justify-content: center;
grid-template-columns: 250px 1fr;
display:flex; with sidebar flex: 0 0 250px and main flex: 1.
Grid: rows stretch by default.
Flex: items stretch on the cross axis (align-items: stretch is default).