Margin & Padding
The Padding property allows you to specify individually or globally the space that separates the content of an element from its border on each side.
Padding is not to be confused with Margin. The first one adds space inside the element, the other one adds space outside it.
The Margin property allows you to specify individually or globally the space between the border of a block and the border of the adjacent element.
Margin is not to be confused with Padding. The first one adds space outside the element, the other one adds space inside it.
Last modified 9mo ago