HTML How to Make a Website Adding Pages to a Website Add Iconography

Henning Holm
Henning Holm
4,163 Points

Padding vs margin

It is correct to look at padding as space between objects, while margin is more like an indentation?

2 Answers

james south
james south
Front End Web Development Techdegree Graduate 33,245 Points

padding is space between the content and its container. margin is space between containers. both can be used to position, which is best depends on the particular content and context of its placement.