Static Positioning
What you'll learn: You'll understand what position: static means and why every element uses it by default.
The Default State
Every HTML element starts with position: static. This is the default value—you don't even need to write it in your CSS. When an element has static positioning, it simply follows normal flow, exactly as you've already learned.
Think of static positioning as "no special positioning at all." The element sits exactly where it would naturally appear based on whether it's block-level, inline, or inline-block.
What Static Positioning Does (and Doesn't Do)
With position: static, an element:
- Flows naturally with other content (block elements stack vertically, inline elements flow horizontally)
- Respects margins, padding, and borders
- Cannot be moved using
top,bottom,left, orrightproperties (these have no effect) - Cannot use the
z-indexproperty (layering control doesn't apply)
div {
position: static; /* This is already the default */
top: 50px; /* This will be IGNORED */
}
Why It Matters
You'll rarely write position: static explicitly. Its importance comes from understanding it's the starting point. When you learn other position values (relative, absolute, fixed, sticky), you'll be changing this default behavior.
Static positioning is like saying "just be normal"—the element participates in normal flow without any special positioning tricks.
Key Takeaway: position: static is the default positioning for all elements, keeping them in normal flow and making offset properties (top, left, etc.) have no effect.