What is the difference between the margin and padding properties?

Advertisement

  • Margin adds space around and inside of an element; padding adds space only inside of an element.
  • Margin adds space around an element; padding adds apace inside of an element.
  • Margin adds a line around an element, padding adds space inside of an element.
  • Margin adds space inside of an element, padding adds space around an element.
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment


Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend