watch · distill · act

3 CSS Layout Patterns: Stack, Prose & Pile

Implement Kevin Powell's three essential CSS primitives to build cleaner, more flexible layouts fast.

Based on: 3 CSS patterns worth stealing by Kevin Powell

3 CSS patterns worth stealing

Why You Need This Checklist

Ever stare at a CSS layout problem and feel like you're reinventing the wheel every single time? You spend twenty minutes fighting margin inconsistencies, another ten wrestling with grid mystery spacing, and by the time you get things looking right on one breakpoint, something else falls apart. It's exhausting, and it makes CSS feel far harder than it should be.

Here's the thing: most of the spacing and layering challenges you hit day after day come down to just a handful of repeating layout situations. You're adding vertical rhythm to a card. You're styling flowing article text. You're stacking an image behind a title. These aren't unique problems — they're patterns. And once you have reliable, reusable solutions for them, your entire workflow changes.

Imagine opening a new project and instead of starting from scratch, you drop in three small CSS classes — stack, prose, and pile — and your layout practically builds itself. Cards that space their children consistently without a single magic number. Long-form text that naturally groups headings with the content below them, just like a professional typographer would set it. Hero sections and notification badges that layer elements perfectly using nothing but grid, no absolute positioning required. That's what this workflow looks like in practice, and it feels genuinely good.

Kevin Powell is one of the most trusted CSS educators on YouTube, with hundreds of thousands of developers learning from his clear, practical, no-nonsense teaching style. In this video, Kevin doesn't just show you the patterns — he explains why flexbox beats grid for the stack primitive, how the lobotomized owl selector powers smarter prose spacing, and how the pile pattern unlocks Z-index control without a single line of position: absolute. These are the kinds of insights that only come from someone who has thought deeply about CSS architecture and taught it to thousands of people.

This checklist distills every actionable technique from Kevin's video into a clear, step-by-step reference you can keep open while you code. From setting up the custom property fallback pattern to aligning badge overlays with place-self shorthand, every detail is captured so you never have to scrub back through the video again. Grab the checklist and start building smarter layouts today.

What's Inside — Preview

Every checklist item comes with actionable notes to guide you — things like "Don't forget to do this before you start," "Avoid this common mistake," or "Set a reminder for 30 days out." Nothing vague, just clear next steps.

DO Reset all default margins to zero before applying any layout primitive
BUILD Build the Stack primitive using flexbox with flex-direction column and a gap
AVOID Avoid using CSS Grid for the Stack primitive when children also use grid internally
LEARN Understand why grid mystery spacing happens and how to fix it if you must use grid
DO Declare the stack gap as an undefined custom property with a fallback value, not a hard-coded variable

+ 17 more action items inside...

Get the Full Checklist

Instant PDF download. Start taking action today.

$3.99 one-time
Get Instant Access →

✓ Instant download  ·  ✓ PDF format  ·  ✓ No subscription