Skip to content
Retr0 Academy
Advanced CSS

Advanced CSS · 8 questions

Advanced CSS quiz

Answer every question, then score the quiz. The result is saved in this browser.

1. What does grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) do?
2. Which layout tool is designed for two-dimensional placement in rows AND columns?
3. .card { --pad: 24px } .card.compact { --pad: 12px } .card p { padding: var(--pad) }. What padding does p get inside .card.compact?
4. What does color: var(--brand, hotpink) do if --brand is not defined?
5. Which pair of properties can usually be animated without triggering layout or paint?
6. What is the difference between a transition and a keyframe animation?
7. A card should switch to a horizontal layout when ITS slot is at least 400px wide. What do you use?
8. What does font-size: clamp(1.5rem, 1rem + 3vw, 3.5rem) do?