TLDR · QUICK LINKS

THE RULES OF MARGIN COLLAPSE

joshwcomeau.com10 min read

Summary from the TLDR newsletter

Margin collapse is when adjacent margins overlap in CSS - understanding the rules behind this mechanism can make writing CSS clearer and less surprising.