Zum Hauptinhalt springen
← 🎨 CSS as a design systemΒ·Modul B3 Β· Lektion 13
AufgabeQuick recap. Write CSS that uses all 4 B1-B3 fundamentals. Define :root with --gap: 12px. Apply box-sizing: border-box to *. Make .row a grid with grid-template-columns: 100px 100px 100px and gap: var(--gap). The 4 checks verify each.

Recap: Cascade, box, layout, grid

50 XP5 min
Theorie

Quick recap β€” Modules B1-B3

Box, layout engines, grid. The 4 things you write in every real stylesheet:

  1. `:root` custom properties β€” design tokens (--space-md, --color-bg) that flow through the cascade.
  2. `var(--token)` β€” consume the token. Browsers fall back to the second arg if undefined.
  3. `box-sizing: border-box` β€” width includes padding+border. Universal selector, once, on *.
  4. `display: grid` + `grid-template-columns` β€” the modern default. Flex is for one axis, grid for two.

If any feels random, redo B1-04 / B1-06 / B2-09 / B3-02 then come back.

πŸ”’

Anmelden, um zu programmieren

Theorie ist fΓΌr alle offen. Editor, Live-Preview und Check werden mit 7-Tage-Gratis-Test freigeschaltet β€” Karte erforderlich, jederzeit kΓΌndbar.

Registrieren β€” Gratis-Test β†’

Die ersten 10 Lektionen jedes Tracks sind kostenlos. Keine Karte nΓΆtig.

← ZurΓΌckNΓ€chste Lektion β†’

Bekomme einen Python- oder Web-Tipp pro Tag β€” per E-Mail

Kurz, handgeschrieben, kein Spam. Abmelden mit einem Klick.