In terms of spaces vertically talking about margin, only vertical space share the same space between each element.
Ex: A paragraph 1, and another paragraph 2. If you have
margin-top: 20px
and
margin-bottom: 20px
this does not equal to 40px, but 20px still, they share the same margin instead. This only applies vertically.
Exemption: Margins only collapse when they're touching.
Top comments (0)