Layout / The visual dictionary

Margin.

Space outside an element that separates it from neighboring content.

Also calledouter spacingoutside space
01

See it in context

UI illustration
Margin
Element
↔

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.

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.

Primary documentation for the pattern and its platform conventions.