Glossary: CSS Layout and Responsive Design
Margin collapsing
When vertical margins of adjacent blocks touch, they merge and the larger wins instead of adding. It doesn't happen in flex or grid layouts.
Glossary: CSS Layout and Responsive Design
When vertical margins of adjacent blocks touch, they merge and the larger wins instead of adding. It doesn't happen in flex or grid layouts.