Margin and Padding

Goal

  • โšก Learn margin
  • ๐Ÿ”ฅ Learn padding

What is margin and padding ?

A margin is the space outside something,

whereas padding is the space inside something.

https://www.htmldog.com/guides/css/beginner/margins/

Check margin and padding

Visit: https://margin-padding-demo.now.sh/

And open chrome dev tools.

info
  • HTML Block: Blue
  • Margin: Orange => space of each blocks.
  • Padding: Green => space inside block.

Button is easy to understand padding and margin.

margin-and-padding