1 / 5
What does CSS display: grid create?
-
-
-
-
CSS Grid is a two-dimensional layout system letting you place items into rows and columns simultaneously.
2 / 5
In Flexbox, what does justify-content control?
-
-
-
-
justify-content distributes space along the main axis; align-items handles the cross axis.
3 / 5
What do container queries let you style by?
-
-
-
-
Container queries (@container) apply styles based on the size of an ancestor container rather than the viewport, enabling truly modular components.
4 / 5
How do you define a CSS custom property?
-
-
-
-
A custom property (CSS variable) is declared with a -- prefix, e.g. --color: red, and read with var(--color).
5 / 5
What does the :has() pseudo-class do?
-
-
-
-
The :has() relational pseudo-class selects an element that contains a matching descendant, e.g. article:has(img), acting as a parent selector.