Margin-top, and margin-bottom overlap, so what conditions will overlap?

margin-top, and margin-bottom overlap, so what conditions will overlap
Css
Mar.28,2021

BFC learn about


it should be that the margin-bottom of the adjacent previous div overlaps with the margin-top of the next div. The larger value shall prevail, not the sum.

clipboard.png

clipboard.png


BFC mode, hope to help you

Menu