Home
Bookmarks
Leagues
LEARN
Courses
Career Paths
Assessments
Tutorials
Arcade
Glossary
GROW
Certifications
Log in
Glossary
Log inSign up
Courses/UX Design Foundations/Intro to Design Grids
Level 5 · Layout and Composition

Intro to Design Grids

14 min read
6 exercises
250 XP
Start lesson

Ready to test what you learned?

Complete the lesson quiz and earn 250 XP.

Start quiz

Topics in this lesson

Anatomy of a Grid: Columns, Gutters, and MarginsThe Universal 12-Column Responsive Grid SystemFluid vs. Fixed vs. Adaptive Grid ImplementationsBaseline Grids and Vertical Typographic RhythmCSS Grid vs. Flexbox: Two-Dimensional vs. One-DimensionalContainer Queries: Component-Centric Grids

From Course

📘
UX Design FoundationsBeginner · 25 lessons
Intro to Design Grids

Lesson

Intro to Design Grids

Anatomy of a Grid: Columns, Gutters, and MarginsThe Universal 12-Column Responsive Grid SystemFluid vs. Fixed vs. Adaptive Grid ImplementationsBaseline Grids and Vertical Typographic RhythmCSS Grid vs. Flexbox: Two-Dimensional vs. One-DimensionalContainer Queries: Component-Centric Grids
Start lesson
Complete lesson and earn 250 PX
Exercise #1

Anatomy of a Grid: Columns, Gutters, and Margins

A grid is an underlying structure of intersecting horizontal and vertical guidelines used to organize content with mathematical discipline:

  1. Columns: The vertical blocks of space where content, cards, and text live. Width can be fixed (e.g., 68px) or fluid (percentage of container).
  2. Gutters: The negative space separating adjacent columns. Gutters prevent content from visually colliding. Standard modern web gutters range from 16px to 32px.
  3. Margins (Side Paddings): The outer whitespace between the outermost columns and the physical screen edge. Protects content from being clipped by device bezels.
Exercise #2

The Universal 12-Column Responsive Grid System

Why has the 12-column grid remained the undisputed industry standard for web and desktop interfaces for over two decades?

The Magic of Mathematical Divisibility

The number 12 is divisible by 1, 2, 3, 4, 6, and 12:

  • Full Width: 1 column spanning 12 units (100%).
  • Halves: 2 equal columns spanning 6 units each (50% / 50%).
  • Thirds: 3 equal columns spanning 4 units each (33.3% x 3).
  • Quarters: 4 equal columns spanning 3 units each (25% x 4).
  • Asymmetrical Splits: 8 units for main content + 4 units for sidebar (66.6% / 33.3%).

A 10-column or 8-column grid lacks the versatility to accommodate thirds and quarters simultaneously.

Exercise #3

Fluid vs. Fixed vs. Adaptive Grid Implementations

Grids behave differently as viewports expand:

  • Fixed Grid: Columns have rigid pixel widths (e.g., exactly 60px). When the screen expands, the content container remains locked at a fixed width (e.g., 1200px) with expanding side margins.
  • Fluid Grid: Columns and gutters scale dynamically as a percentage of the total viewport width (e.g., using CSS fr units or %).
  • Adaptive Grid: Snaps between predefined fixed grid layouts at specific hardware breakpoints (e.g., 4 columns on mobile, 8 columns on tablet, 12 columns on desktop).
Exercise #4

Baseline Grids and Vertical Typographic Rhythm

While column grids govern horizontal layout, baseline grids govern vertical alignment:

A baseline grid consists of horizontal lines repeating at fixed increments (standardly 4px or 8px):

  • All typography lines, heading margins, button heights, and image boxes must snap to a baseline grid line.
  • UX Outcome: Eliminates awkward vertical misalignments. When multi-column articles share a common baseline grid, lines of text across adjacent columns align horizontally, creating Swiss-style typographic harmony.
Exercise #5

CSS Grid vs. Flexbox: Two-Dimensional vs. One-Dimensional

Modern web layouts combine two powerful CSS layout engines:

CSS Flexbox (One-Dimensional)

  • Arranges items along a single axis (either row or column).
  • Ideal Use Cases: Navigation bars, button groups, icon-and-label alignments, tag lists. Content dictates size.

CSS Grid (Two-Dimensional)

  • Simultaneously controls both rows and columns.
  • Ideal Use Cases: Overarching page layouts, complex dashboard card arrangements, magazine-style editorial features. Grid dictates size.
Exercise #6

Container Queries: Component-Centric Grids

Historically, responsive design depended on Media Queries, which evaluate the global browser viewport width. This created a major flaw in modular design systems:

A card component placed in a wide sidebar had to render in a cramped space despite the browser viewport being 1440px wide.

The Container Query Revolution (@container)

Container queries allow a component to inspect the width of its immediate parent container rather than the screen:

@container (max-width: 400px) {
  .product-card {
    flex-direction: column;
  }
}

This makes components genuinely modular: a card adapts its grid layout automatically regardless of whether it lives in a narrow sidebar or a wide main feed.