Lesson 2 of 9
Grid Systems Explained - 12-Column, 4-Column & Custom
Different products use different grid systems optimized for their specific screen sizes and content types. The 12-column grid dominates desktop web design for its flexibility. The 4-column grid is standard for mobile screens. Custom modular grids serve editorial, dashboard, and imaging-heavy layouts. Understanding which grid to use for which context - and how to switch between them responsively - is a core layout design skill.
The 12-Column Grid for Desktop
The 12-column grid is the dominant standard for desktop web and application layout, used by Bootstrap, Material Design, and nearly every major design system. Its power comes from mathematical flexibility: 12 divides into 1, 2, 3, 4, 6, and 12 column groups, enabling virtually any layout combination. Common desktop layouts: Full-width elements span all 12 columns (hero sections, full-width navigation, footer). Two equal columns: 6+6. Three equal columns: 4+4+4 (common for feature cards, pricing columns). Sidebar layouts: 3+9 (left sidebar + main content), 4+8 (wider sidebar), 9+3 (main content + right navigation/TOC). Content-focused: 2+8+2 (content centered with symmetrical margins). When in doubt about desktop layout, start with the 12-column grid. It's understood by virtually every engineer, reduces communication friction during handoff, and solves the vast majority of layout challenges. In Figma, always set up your 12-column grid before designing any desktop screen - align every element to column boundaries from the first frame.
Grid Systems Explained - 12-Column, 4-Column & Custom: Visual guide and core principles.
The 4-Column Grid for Mobile
- Why 4 columns for mobile: Small screens (320-428px width) don't have room for 12 columns at any meaningful width. A 12-column grid on a 375px screen would give columns of about 23px - too narrow to place any content. Mobile content is primarily single-column or two-column, making 4 columns the practical maximum that gives sufficient column width while maintaining flexibility
- Standard mobile grid setup: 4 columns, 16px gutters, 16px side margins. On a 375px screen: (375 − 32 − (16 × 3)) ÷ 4 = (375 − 32 − 48) ÷ 4 = 295 ÷ 4 ≈ 73px per column
- Mobile layout patterns in 4 columns: Single-column content (4/4) - standard for reading content, news feeds, lists. Two equal columns (2/2) - product grids, gallery layouts. Full-bleed (overriding grid) - hero images, video, maps that intentionally break the grid to fill the screen to edge
- Card grid on mobile: Instagram uses 3-column photo grid on mobile - each photo spans slightly over 1 column width, with minimal gutters. This works because image-only content needs minimal padding. Text-heavy content should never use more than 2 columns on mobile - it creates uncomfortably short line lengths and requires constant eye-direction switching
- Transition between grids: As screen width increases through responsive breakpoints, the grid transitions: 4 columns (mobile) → 8 columns (tablet) → 12 columns (desktop). The 8-column tablet grid is less common but serves as a flexible transition point for medium-sized screens (768px-1024px)
Custom & Modular Grids
Some product types benefit from custom grids beyond the standard 12/4 column system. Baseline grids add horizontal rhythm to text-heavy layouts - a 4px or 8px baseline grid ensures all text elements align to a horizontal grid, creating vertical rhythm across the page. Editorial publications and design-focused products use these heavily. Modular grids create a matrix of rows AND columns - used for dashboard layouts where widgets can be sized in both dimensions (a 2×1 module is twice as wide as tall, a 1×2 is twice as tall). Dashboard design tools like Grafana and Google Analytics dashboards use modular grids for their widget systems. Custom column counts: Some products use non-standard column counts for specific reasons. A 10-column grid is popular with some design systems because it divides into 1, 2, 5, and 10 - useful for percentage-based layouts and decade-step data displays. An 8-column grid is common for tablet-optimized layouts. The key principle: the 'right' grid is the one that aligns with your content's natural structure and your users' mental model of the layout.
Tip
Tip
Practice Grid Systems Explained 12Column 4Column Custom in small, isolated examples before integrating into larger projects. Breaking concepts into small experiments builds genuine understanding faster than reading alone.
Practice Task
Note
Practice Task - (1) Write a working example of Grid Systems Explained 12Column 4Column Custom from scratch without looking at notes. (2) Modify it to handle an edge case (empty input, null value, or error state). (3) Share your solution in the Priygop community for feedback.
Quick Quiz
Common Mistake
Warning
A common mistake with Grid Systems Explained 12Column 4Column Custom is skipping edge case testing - empty inputs, null values, and unexpected data types. Always validate boundary conditions to write robust, production-ready ui ux code.
Key Takeaways
- Different products use different grid systems optimized for their specific screen sizes and content types.
- Why 4 columns for mobile: Small screens (320-428px width) don't have room for 12 columns at any meaningful width. A 12-column grid on a 375px screen would give columns of about 23px - too narrow to place any content. Mobile content is primarily single-column or two-column, making 4 columns the practical maximum that gives sufficient column width while maintaining flexibility
- Standard mobile grid setup: 4 columns, 16px gutters, 16px side margins. On a 375px screen: (375 − 32 − (16 × 3)) ÷ 4 = (375 − 32 − 48) ÷ 4 = 295 ÷ 4 ≈ 73px per column
- Mobile layout patterns in 4 columns: Single-column content (4/4) - standard for reading content, news feeds, lists. Two equal columns (2/2) - product grids, gallery layouts. Full-bleed (overriding grid) - hero images, video, maps that intentionally break the grid to fill the screen to edge
Finished this lesson?