FodGrid & FodItem Examples

Container + Grid Pattern (FOD Design System)

The complete FOD pattern uses FodContainer for constrained width, FodGrid for rows, and FodItem for columns.

col-12 / md:4
col-12 / md:4
col-12 / md:4

FodContainer MaxWidth="Lg" constrains the grid to 960px max-width with centered alignment.

Container Sizes Comparison

Different MaxWidth values constrain the container to different widths.

MaxWidth.Sm (540px)
MaxWidth.Md (720px)
MaxWidth.Lg (960px)
MaxWidth.Xl (1248px)
Fluid (full width)

Basic Grid (Equal Columns)

col-4
col-4
col-4

Half Columns (6+6)

col-6
col-6

Mixed Widths (3+6+3)

col-3
col-6
col-3

All 12 Columns

13
13
13
13
13
13
13
13
13
13
13
13

Auto-width Column

col-3
col-auto (fits content)
col-3

GapX: None (0px)

col-4
col-4
col-4

GapX: Small (16px)

col-4
col-4
col-4

GapX: Large (32px)

col-4
col-4
col-4

Responsive Columns

Resize the browser to see the effect: 12 columns on mobile, 6 on medium, 4 on large screens.

12 / md:6 / lg:4
12 / md:6 / lg:4
12 / md:12 / lg:4

Sidebar Layout (Responsive)

Sidebar (12 / md:3)
Main Content (12 / md:9)

Column Offset

Centered (offset-md-3)

Column Ordering

Third column in DOM appears first visually on medium+ screens.

First in DOM, order-md-2
Second in DOM, order-md-3
Third in DOM, order-md-1

GapY (16px)

Vertical spacing between wrapped rows.

Item 1
Item 2
Item 3
Item 4 (wraps)
Item 5 (wraps)
Item 6 (wraps)

Justify Center

col-3
col-3

Justify Space Between

Left
Right

Align Items Center

Centered
Taller
Centered

Align Self

Individual column alignment overrides row's AlignItems.

Start (default)
Center (self)
End (self)
Stretch (self)

Centered Card Layout

Using Justify and AlignItems together.

Centered Card
This card is centered both horizontally and vertically.

Nested Grid (2 Levels)

A row nested inside a column creates an independent grid context.

Nested Row Inside
Nested 6
Nested 6
Regular Column

Nested Grids with Different GapX

Parent grid uses large gap, nested grid uses small gap.

Large GapX Parent (32px)
Tight 1
Tight 2
Tight 3
Sidebar

Deep Nesting (3 Levels)

Demonstrates 3 levels of nesting with decreasing gap sizes.

Level 1 (32px GapX)
Level 2 (16px GapX)
Level 3
Level 3
Level 2 Content

Density: Comfortable vs Compact

Compact density reduces spacing for data-dense interfaces.

Comfortable (Default)

Item 1
Item 2
Item 3
Item 4

Compact

Item 1
Item 2
Item 3
Item 4

Compact Density with GapY

Compact density combined with vertical gap for wrapped rows.

Item 1
Item 2
Item 3
Item 4
Item 5
Item 6

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.