Visual grid demonstration with overlay
Toggle grid lines to see the structure
✨ Now featuring fluid typography that scales smoothly!
All containers are centered (mx-auto) - see how they compare
max-w-sm - Buttons, small cardsmax-w-md - Forms, modalsmax-w-lg - Single column textmax-w-4xl - Blog posts, articlesmax-w-6xl - Dashboardsmax-w-7xl - Full page layoutsDifferent ways to span columns in a 12-column grid system
How different gap sizes affect column spacing and available content width
6 columns × 2-span each = 12 total, with 5 gutters between them
gap-0 = 0px (no spacing)gap-2 = 8pxgap-4 = 16px (popular)gap-6 = 24px (popular)gap-8 = 32pxgrid grid-cols-12 Setup 12-column grid col-span-6 Half width (50%) col-span-4 One third (33%) col-span-3 One quarter (25%) flex gap-4 Setup flexbox basis-1/2 Half width (50%) basis-1/3 One third (33%) basis-1/4 One quarter (25%)