https://codepen.io/donghoon759/pen/xxaOEgo
` // html DIV P
// css .upper { background: yellow; margin: 20px; }.lower {
background: red;
margin: 20px;
}
`
div and p has "margin: 20px" each. But when I inspect the elements, the gap between two elements is only "20px". When I change the display value of div to "inline-block", it works as intended. I wonder the reason.
The gap between two elements becomes "40px".