Build any web layout,
with confidence.

A practical, written CSS course that teaches you how to think, build, and debug web layouts.

Ahmad Shadeed

Taught by

Ahmad Shadeed

Why do CSS layouts keep breaking?

You start writing CSS for a layout, things look right,
and it feels like you're making progress.

Then the content changes. An element gets removed. The design is viewed on a different screen.
Suddenly, things start falling apart.

Grid works
Fixed bug #1
Fixed bug #2
Flexbox works
Fixed bug #1

I used to do this all the time before I learned how to think before writing a single line of CSS. I know that feeling. And along the way, we often make mistakes like these:

  • Thinking in terms of fixed breakpoints and ignoring what happens in between.
  • Building structure before understanding content.
  • Reaching for Grid or Flexbox without knowing what problem they actually solve.
  • Patching layout issues instead of fixing the system underneath.

These mistakes are subtle. They look fine at first, then collapse as soon as requirements change.

The problem is that most of us learned CSS layout modules in isolation, without understanding the thinking behind when and why to use them.

Flexbox
Grid
:has()
Container queries
clamp

To help you connect the dots, I've built a new CSS course and I called it:

The Curriculum

What you'll learn

Foundations

Learn the mental model for how CSS layout works, the key concepts that cover every layout decision: types, constraints, slots, and how to think beyond breakpoints.

  • Layout types
  • Layout Constraints
  • Layout Slots
  • Content-driven Layouts
  • Beyond media queries
  • Conditional Layouts

Core

Sharpen your understanding of modern CSS layout tools and learn how Flexbox, Grid, container queries, and selectors like :has() work and how to use each one intentionally instead of guessing.

  • Flexbox
  • Grid
  • Container queries
  • :has()
  • Fluid CSS

Building

Apply what you learned by building real layouts from start to finish. See how layout decisions evolve, how trade-offs are made, and how a layout is adjusted as complexity increases.

  • Real-life layouts
  • Edge cases
  • Conditional layouts
  • Editorial layouts
  • Fluid CSS

Resilient Layouts

This module teaches you how to evaluate your layout decisions, test their limits, and strengthen them before they cause problems. You will learn to stress-test layouts against changing content, missing elements, and edge cases.

  • Pre-checklist
  • Breaking a layout
  • Defensive thinking

Why this course

If you're going to learn layout in CSS, which I think you should as it's the most empowering part about CSS, then you need to learn how to think about a layout before you code it. That's what Ahmad teaches you here in each example. You look at, you identify unique and challenging parts of it, then pick layout methods to pull it all off while accommodating those unique aspects.

Chris Coyier
Chris Coyier

Codepen, Formerly CSS-Tricks

What you will get

Over 70+ written lessons

Filled with written lessons that are explained visually with highly interactive examples.

7+ real-world layout projects

Not abstract concepts in isolation. You'll see how layout techniques come together in complete, real-world page layouts.

Free trial for Polypane browser

When you purchase the course, you can try Polypane browser with a free trial of 2 months.

Certificate of completion

When you finish the course, you can ask for a Certificate of Completion to share with friends on social media, whatever makes you happy.

Lifetime access & updates

The Layout Maestro won't stop there, it will always be updated for new CSS stuff and recommendations.

A peek into the course

The same quality you read in my interactive articles, but in the form of a complete course.

The Layout Maestro: a screenshot from the Brew Space project.
The Layout Maestro: a screenshot from the style container queries lesson.
The Layout Maestro: a screenshot from the grid auto flow lesson.
The Layout Maestro: a screenshot from the Green Roasters project.
The Layout Maestro: a screenshot from the Kahwa Roasters project.
The Layout Maestro: a screenshot from the Kahwa Roasters project while explaining the hero section.
The Layout Maestro: a screenshot from the Kahwa Roasters project while explaining the Why section which has an unusual layout.
The Layout Maestro: conditional layouts.
The Layout Maestro: flexbox alignment.

Table of contents

It's rare to find a CSS course out there with this level of practical examples. I mean it.

  • Foundations
    • The tricky parts
      • Normal Flow
      • Full Width and Height
      • Box Model
      • Margin Collapse
      • Stacking Context
    • Layout
      • Intro
      • Single Axis
      • Multi Axis
      • Hybrid Axis
    • Principles
      • Layout is a set of boxes
      • Relationship between items
      • Layouts are fluid
      • Layouts are content-driven
      • Layouts are conditional
      • Content can break a layout
      • Layout constraints
      • Layout Slots
      • Outer grid
  • Core
    • Flexbox
      • Intro
      • Mindset
      • Direction
      • Axes
      • Flex basis
      • Flex grow
      • Flex shrink
      • Flex Property
      • Free space
      • Flex Wrapping
      • Alignment
      • Intrinsic sizing
    • Grid
      • Mindset
      • Explicit vs Implicit
      • Auto Placement
      • Auto Flow
      • Line Placement
      • Items Sizing
      • Alignment
    • Conditional layouts
      • Overview
      • Conditions with :has()
    • Container queries
      • The problem
      • Size container queries
      • Choosing query sizes
      • Style container queries
      • Query units
      • Things to know
      • Examples
    • Comparison functions
  • Building layouts
    • Kahwa roaster
      • Thinking
      • Why Section
      • Hero Section
      • Header Layout
    • Brew space
      • Thinking
      • Hero section
      • How it works section
    • Article layout
      • Thinking
      • Building
    • Green roasters
      • Thinking
      • Main layout
      • CSS grid
      • Responsive design
    • Best coffee
      • Thinking
      • Outer grid
      • Inner details
    • Chat UI
      • Chat UI
    • Coffee crunch
      • Thinking
      • Section 1 (Hero)
      • Section 2
      • Section 3
      • Section 4
      • Card component
  • Resilient layouts
    • Common layout issues
    • The pre-checklist
    • How to test layouts

What's coming next

I'm actively working on new lessons and sections for the course. Here's what's coming soon.

More building projects Soon

The building module contains 7 projects, and more will be added over time, including updates for the current projects, too.

Anchor positioning Soon

A deep-dive into anchor positioning.

What students are saying

The Layout Maestro is thorough in a way I haven't seen before. Ahmad builds your understanding of each layout method, then puts it into practice by showing how to approach layouts, including how they break and walking through the fix.

The visuals and interactive examples make the concepts stick. You could know very little about CSS layout before taking this course and walk away well above the average front-end developer. Valuable at any experience level.

Avatar of Jennifer Saenz
Jennifer Saenz

Front-End Developer

The Layout Maestro is unique among the current courses offered. First off, this is the only course that I am aware of that addresses CSS layout. Second, Ahmad doesn't just dive into syntax but helps you to develop the mindset of a front-end developer.

This equips you to make layout decisions on your own projects. Everyone who takes this course will benefit from Ahmad's clever solutions that combine several modern CSS techniques for more flexible and resilient products. Even an experienced CSS developer has plenty to learn and take away from this course.

Avatar of Jeff Bridgforth
Jeff Bridgforth

Front-End Developer

Layout Maestro is the kind of course that changes the way you think layout.

It trains your eye, challenges old habits and replaces them with a modern CSS toolkit: anchor positioning, container queries, subgrid and more.

Avatar of Johannes Mutter
Johannes Mutter

Design Engineer

Join hundreds of designers and developers who build CSS layouts they actually understand.

The Layout Maestro

Start learning CSS layouts you actually understand.

Offer ends April 30

$249

$199

  • Full access to all modules

  • Over 70 written lessons

  • 7+ real-world layout projects

  • 150+ interactive examples

  • Free copy of Debugging CSS book

  • Teaches you how to think, not just CSS syntax

  • Lifetime access and future updates

  • 30-day money back guarantee

Price in USD, before tax if applicable.

Meet the author

Hello! I'm Ahmad Shadeed, a designer, developer, and CSS educator. I wrote Debugging CSS Book, Defensive CSS, and RTL Styling 101 guide.

I'm a designer who codes. I've been working at the intersection of design and front-end development for over 12 years. I started as a graphic designer, fell in love with CSS, and never looked back.

I write in-depth, visual articles about CSS on ishadeed.com with 145+ articles so far. My work has been featured by Smashing Magazine, CSS-Tricks, Google and many more. I'm also a Google Developer Expert in Web UI & CSS.

I wrote the Debugging CSS book , created Defensive CSS, RTL Styling 101, and Accessibility Matters. I also spoke at conferences like CSS Day, Web Directions, and Paris Web.

Web design and development is what I enjoy most. Whether it's writing visual guides, consulting with teams, building interactive demos, or tinkering with new CSS features, I like helping developers understand how layout actually works. That's exactly what led me to create The Layout Maestro.

Find my articles on my blog, connect with me on Bluesky, X, or LinkedIn.

It's not about learning the syntax, but showing you how to think.

Every now and then while working on the course, I will have the wish of having this course early in my career. With over 10 years of working as a front-end developer and web designer, and over 6 years of writing and sharing about CSS, I know exactly the pain points that most front-end developers or CSS learners encounter.

It's not about learning the syntax, but showing a developer how they should think, decide, and choose features before even writing a single line of code. This knowledge is missing and I'm excited that my course will offer it for you.

After finishing the course, you will walk with a mental model on how to approach a layout and think about it, not just memorizing a CSS property.

Ahmad Shadeed
Ahmad Shadeed

Design Engineer, Educator, Speaker

This course is for you if you are...

  • a front-end developer who writes CSS but doesn't feel confident about layouts

    You can center a div, but when a designer hands you a complex page, you're not sure where to start. This course gives you a system for breaking down any layout.

  • a developer who learned Flexbox and Grid but still guesses which one to use

    You know the syntax, but you pick one and hope it works. This course teaches you how to decide before writing a single line of CSS.

  • a full-stack developer with gaps in your CSS knowledge

    You learned enough to ship, but things break in ways you can't explain. This course fills the gaps with a clear mental model for how to build layouts confidently.

  • a designer who codes and wants to build your own layouts

    You understand spacing, hierarchy, and composition, but translating that into CSS feels like a complex task. This course will fix that.

  • a senior developer who wants to sharpen your CSS layout skills

    Learn the skills needed to be 2-5x more productive with CSS layouts.

Build better layouts starting today.

Take the chance and buy your seat!

Frequently asked questions

Just in case you were thinking about one of these

  • What is the course format like?

    Every lesson in The Layout Maestro uses interactive demos and detailed visual illustrations that you can explore at your own pace. You can toggle properties, resize elements, and see exactly how the browser makes layout decisions.

  • How long will it take to complete the course?

    It depends on your pace. Usually it's expected to be completed in 12-20 hours.

  • What should I know before taking this course?

    Basic HTML and CSS (selectors, box model) are enough. You don't need to know Flexbox or Grid in advance. The course builds from mindset and fundamentals up to advanced layout examples.

  • Can't AI just write my CSS layouts?

    AI can generate CSS, but it often lacks the judgment of when to use which layout approach. This course teaches you the thinking behind layout decisions so you can evaluate and correct AI output instead of pasting code you don't understand.

  • Is this course for absolute beginners?

    This course assumes you know basic selectors, the box model, and how to write a stylesheet. If you haven't written HTML or CSS before, you'll want to learn the basics first.

  • Can I get a receipt?

    Yes. After purchase you'll receive a receipt by email. You can also request one from the payment provider if needed.

  • I'm a student. Can I get a discount?

    Yes! Please contact me at support@ishadeed.com along with your proof of enrollment and I'll be happy to provide a discount.

  • What if I didn't like the course?

    We offer a 30-day money-back guarantee. If the course isn't for you, contact support@ishadeed.com within 30 days for a full refund. We might ask you to provide a reason, but it's optional.

  • Can I get a certificate of completion?

    Yes. When you finish the course, you can request a certificate of completion to share or use professionally.

  • Do you offer team licenses?

    For team or site licenses, get in touch with us. We can arrange bulk access and invoicing for your team.

  • Is there a workshop format available?

    I plan to offer a workshop format in the future. If you're interested, get in touch with me at support@ishadeed.com.