Layout / The visual dictionary
Margin.
Space outside an element that separates it from neighboring content.
Also calledouter spacingoutside space
01
UI illustrationSee it in context
Margin↔
Element
02
What it is
Space outside an element that separates it from neighboring content. Use outside spacing to express relationships between blocks and screen edges.
When to use it
Use it to give sections room without increasing their internal surface.
Know the difference
Margin is outside the boundary; padding is inside it.
03
Across platforms
WebiOSiPadOSAndroidmacOSWindowsLinuxwatchOSWear OStvOSAndroid TVvisionOS
Web · iOS · iPadOS · Android · macOS · Windows · Linux · watchOS · Wear OS · tvOS · Android TV · visionOS
CSS has an explicit margin property; native platforms often express this through layout constraints or guides.
04
Go to the source
Primary documentation for the pattern and its platform conventions.