Josh Comeau personal blog

The Rules of Margin Collapse

“Margin collapse” has a dastardly reputation, one of the trickier parts of CSS. Fortunately, it gets a lot easier once you learn a few rules! In this tutorial, we take a deep dive into the governing principles, and learn how to use them to our advantage.
Points
134
HN comments
36
Submissions
2
Cited by
0 commenters

Web & FrontendDesign & UX2023

On Hacker News

SubmittedTitle on HNPointsComments
Sep 12, 2023The Rules of Margin Collapse by ayoreis13431
Feb 17, 2021The Rules of Margin Collapse by bpierre585

More from Josh Comeau

All 32 posts →

Related posts from the same era