What is the difference between the margin and padding properties?

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest
  • 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.
0/5 (0 Reviews)

Like this article?

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest

Related Posts