← Arcade

CSS Surgeon

Fix broken layouts. Master Flexbox & Grid.

You'll see a broken layout on the left and a code editor on the right. Write CSS to match the target layout. Use the property pills for quick insert. Check your solution to advance. Good luck, Surgeon.

Patient

O Sangramento

✓ OK

The Definitive Guide to Flexbox: Mastering CSS Layouts for Responsive Design

Sharpen your CSS skills with interactive challenges. This guide covers Flexbox, Grid, and positioning—essential tools for building modern, responsive layouts. Perfect for junior developers and anyone looking to fix broken layouts with confidence.

CSS Flexbox Tutorial

Flexbox is a one-dimensional layout model that distributes space and aligns items within a container. Use display: flex to turn any element into a flex container. Key properties include justify-content (main axis), align-items (cross axis), and gap for spacing between items.

CSS Grid Practice

Grid is a two-dimensional layout system. Use grid-template-columns and grid-template-rows to define tracks. Combine with Flexbox when you need both row and column control.

Fix CSS Layout Issues

Common layout bugs come from missing or wrong values for display, positioning, or alignment. Always check display, position, and z-index when elements do not appear where you expect.

CSS Positioning Explained

position: absolute takes elements out of flow. position: relative keeps the element in flow but allows offset. Use z-index to control stacking order.

Keywords: CSS Flexbox tutorial, CSS grid practice, fix CSS layout, CSS challenges for developers, responsive design practice, CSS positioning explained.