Sarah Chen
Frontend Developer
{
"$schema": "../schemas/code-crispies-module-schema.json",
"id": "box-model",
"title": "CSS Box Model",
"description": "Master the fundamental principles of space management in web design through the CSS box model. This module explores how content, padding, borders, and margins combine to create layout structures that are both visually appealing and structurally sound.",
"difficulty": "beginner",
"lessons": [
{
"id": "box-model-1",
"title": "Padding",
"description": "Every element in CSS is a box with four layers: content, padding, border, and margin. Padding creates breathing room between your content and the box's edge.
Without padding, text presses against borders awkwardly. Padding makes content readable and visually balanced.
.card {\n padding: 1rem;\n}",
"task": "This profile card looks cramped. Add padding: 1rem to .card so the text has room to breathe.",
"previewHTML": "Frontend Developer
Frontend Developer
Frontend Developer
UX Designer
Frontend Developer
Frontend Developer
You have 3 unread notifications