Spacing

Margin and padding

Margin

Margin is the space outside of an element, between the element and its surrounding elements.

Padding

Padding is the space within an element, between the element's content and its border.

Last updated