CompitoQuick recap. Write CSS that uses all 4 B4-B6 fundamentals. body { font-family: system-ui, sans-serif; }. h1 { font-size: clamp(24px, 5vw, 48px); }. .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }. .card { overflow-wrap: anywhere; padding: 12px; background: #eef; }.
Recap: Typography, color, responsive
50 XP5 min
Teoria
Quick recap โ Modules B4-B6
Typography, color, breakpoint-free responsive. The 4 properties that stop you reaching for a framework:
- `clamp(min, preferred, max)` โ fluid type/size without a single
@mediaquery. - System font stack โ
font-family: system-ui, sans-serifships native UI typeface, zero load cost. - `grid-template-columns: repeat(auto-fit, minmax(180px, 1fr))` โ responsive cards without breakpoints.
- `overflow-wrap: anywhere` โ long URLs / hashes / tokens don't blow out a card.
If any feels random, redo B4-03 / B4-01 / B6-04 / B6-13 then come back.
๐
Iscriviti per iniziare a programmare
La teoria รจ aperta a tutti. Editor, anteprima e check si sbloccano con una prova gratuita di 7 giorni โ carta richiesta, annullabile in qualsiasi momento.
Iscriviti โ prova gratuita โLe prime 10 lezioni di ogni percorso sono gratuite. Nessuna carta richiesta.