Skip to content

Grid Dividers

Let's imagine that you're using CSS Grid to create a magazine layout, with 1 large featured story and two smaller stories below:

Code Playground

CSS

HTML

Result

Enable “Tab” for indentation

Right as you're ready to ship it, the lead designer pings you on Slack: “Hi Mahendra — Hate to do this to you, but the design just got updated”.

Here's the new design: