π° Magazine / Editorial Layout
Editorial layouts break the monotony of equal-sized cards by using grid-column and grid-row to create a hierarchy of content β one feature story dominates, others fill around it.
grid-columngrid-rowgrid-template-columnsgrid-template-rowsspan
1. Classic Newspaper Front Page
A headline feature takes the lead with a 2Γ2 cell. Secondary stories fill the right side. Breaking news runs full-width at the bottom. No manual positioning math needed β just declare spans.
Live Demo
THE DAILY GRIDMay 26, 2026
Breaking
CSS Grid Officially Declared the Greatest Layout System Ever Created
By Jane Developer Β· 5 min read
Technology
New Browser Alignment Algorithm Leaves Developers in Tears of Joy
Flexbox Announces Retirement
3 min read
Float Layout Spotted in Wild for Last Time
2 min read
LIVEGrid layout completely eliminates the need for CSS frameworks Β· This very page is built with CSS Grid Β· More coverage below
CSS
.magazine { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto 200px 160px auto; gap: 8px; } .masthead { grid-column: 1 / -1; } .hero { grid-column: 1 / 3; /* cols 1β2 */ grid-row: 2 / 4; /* rows 2β3 = 2 rows tall */ } .top-story { grid-column: 3 / 5; grid-row: 2; } .story-left { grid-column: 3; grid-row: 3; } .story-right{ grid-column: 4; grid-row: 3; } .ticker { grid-column: 1 / -1; }
π‘ The hero's grid-column: 1/3 and grid-row: 2/4 is the whole layout structure. Every other element auto-places itself around the hero.
2. Vertical Split with Categories
A 3-column design where the center column holds the hero and smaller items flow into the side columns β like a print magazine spread.
Live Demo
Grid Weekly
The Grid Renaissance
How CSS Grid changed web design forever and why every developer needs to master it
Feature Β· 12 min read
CSS
.spread { display: grid; grid-template-columns: 1fr 2fr 1fr; /* side | center | side */ grid-template-rows: auto repeat(3, 1fr); gap: 8px; } .masthead { grid-column: 1 / -1; } .hero { grid-column: 2; /* center column */ grid-row: 2 / 5; /* all 3 content rows */ } /* Left + right items auto-place in rows 2β4 */
3. Multi-Section News Layout
Different content categories get their own grid areas. Each section uses an internal grid for its stories. Grids within grids create a richly structured page.
Live Demo
CSS
.page { display: grid; grid-template-columns: 2fr 1fr; grid-template-areas: "hero aside" "tech aside" "design culture"; gap: 1rem; } /* Each section is its own mini-grid */ .section-tech { grid-area: tech; display: grid; grid-template-columns: 1fr 1fr 1fr; }
π‘ Real editorial sites nest grids within grids. Each section is independently structured while participating in the overall page grid.