Block-Level Elements in Normal Flow
What you'll learn: How block-level elements naturally stack on top of each other and expand to fill their container's width.
The Core Idea
In normal flow, block-level elements behave like building blocks stacked vertically. Each block element starts on a new line and stretches horizontally to fill the entire available width of its parent container — even if the content inside is narrow.
Think of it like stacking shoeboxes in a closet. Each box sits on top of the previous one, and even if there's just a small item inside, the box itself takes up the full width of the shelf.
How Block Elements Behave
Common block-level elements include <div>, <p>, <h1>-<h6>, <section>, <article>, and <header>. When you place these in your HTML without any CSS positioning, they:
- Stack vertically — each one appears below the previous element
- Take full width — stretch from left edge to right edge of their container
- Respect the box model — their total height includes content, padding, border, and margin
Why This Matters
This default behavior is the foundation of web layout. Before you learn Flexbox or Grid, you're working with normal flow. Understanding that blocks naturally stack and expand helps you predict how your page will look and troubleshoot layout issues.
If you see two <div> elements appearing side-by-side instead of stacked, something (like float or display changes) has taken them out of normal flow.
Key Takeaway: Block-level elements in normal flow stack vertically like pancakes and stretch horizontally to fill available width, forming the default structure of web pages.