{ "$schema": "../schemas/code-crispies-module-schema.json", "id": "box-model", "title": "WIP: Padding, Borders, and Margins", "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": "Box Model Components", "description": "The CSS box model consists of four concentric layers that build an element's total dimensions: content area (innermost), padding, border, and margin (outermost). Understanding how these components interact is essential for precise layout control.", "task": "Add padding of '1.25rem' to the box to create space between its content and border. Padding is the space between an element's content and its border, giving content room to breathe.", "previewHTML": "
This paragraph has a bottom margin.
This paragraph has a top margin of 1rem.