Skip to main content
Module 5 · Lesson 2 of 418/60 in the course~19 min
Module lessons (2/4)

Normal Flow, Display, Margin Collapse & Overflow

Lesson preview5 hands-on exercises readyModern HTML & CSS · The Box Model, Display & Modern Units

Contrast block, inline, and inline-block layout, tame collapsing vertical margins, and control overflow safely.

What you'll learn in this lesson

  • Understand CSS Normal Flow and compare display: block, inline, and inline-block.
  • Explain why width and vertical margin are ignored on pure inline elements.
  • Tame vertical margin collapsing cleanly and pick between overflow: hidden, auto, and modern clip.

Overview

Before you write a single Flexbox or Grid rule, browsers lay out HTML according to Normal Flow:

Sections covered in this lesson

  1. 1Block vs Inline vs Inline-Block
  2. 2Two Surprising Normal-Flow Gotchas
Pro Lesson · The Box Model, Display & Modern Units

Unlock "Normal Flow, Display, Margin Collapse & Overflow" and the full Modern HTML & CSS curriculum

Contrast block, inline, and inline-block layout, tame collapsing vertical margins, and control overflow safely.

Unlock all 5 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.

  • Instant access to all advanced modules in Modern HTML & CSS plus 17 more courses
  • Hands-on browser exercises with automated test suites and solutions
  • 14-day money-back guarantee processed via Paddle.com

14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.