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": "The text inside this profile card is pressed right against the edges. Give it some inner breathing room.",
"previewHTML": "Frontend Developer
Frontend Developer
Frontend Developer
UX Designer
Frontend Developer
Frontend Developer
You have 3 unread notifications