{
"$schema": "../schemas/code-crispies-module-schema.json",
"id": "css-positioning",
"title": "CSS Positioning",
"description": "Control element placement with CSS positioning properties.",
"difficulty": "intermediate",
"lessons": [
{
"id": "position-1",
"title": "Relative Position",
"description": "The position property controls how elements are placed. relative keeps the element in normal flow but allows you to offset it with top, right, bottom, left.
.box {\n position: relative;\n top: 10px;\n}",
"task": "Make the badge position relative so we can offset it.",
"previewHTML": "Content here
.close {\n position: absolute;\n top: 8px;\n right: 8px;\n}",
"task": "Move the close button to the top right corner with top: 8px and right: 8px.",
"previewHTML": "Content here