Skip to content

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.

Where the book teaches it

Related terms

Block box