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
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Sep 12, 2023 | The Rules of Margin Collapse by ayoreis | 134 | 31 |
| Feb 17, 2021 | The Rules of Margin Collapse by bpierre | 58 | 5 |