CSS Grid and CSS Multi-Columns can be combined to create responsive layouts where a grid fragments across multiple columns automatically. When a grid is placed inside a multi-column container, it fragments into one piece per column while maintaining consistent column sizing across fragments. The post also covers handling borders and padding in fragmented layouts using the `box-decoration-break: clone` property, with a working CodePen example included.

4m read timeFrom patrickbrosset.com
Post cover image
Table of contents
CSS columnsCSS GridsColumns + Grids = ♥Fragmenting padding and border too

Sort: