Margin, Padding

i already know what this means but i would like someone with good experience to help me understand more. With examples might helps. Thanks :smiling_face:

It’s well defined in this image:

CSS Margin vs. Padding: What's the Difference?

A MARGIN is the space around an element’s border, while PADDING is the space between an element’s border and the element’s content.

The MARGIN controls the space outside an element, and the PADDING controls the space inside an element.

AN ARTICLE ON THE SUBJECT:

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.