Grid

Grid system from Tailwind CSS, refer to the official doc for more detail usage.

Grid Template Columns

Use the grid-cols-{n} utilities to create grids with n equally sized columns.

01
02
03
04
05
06
07
08
09

Grid Column Start / End

Use the col-span-{n} utilities to make an element span n columns.

01
02
03
04
05
06
07

Grid Column Start / End Line

Use the col-start-{n} and col-end-{n} utilities to make an element start or end at the nth grid line. These can be combined with col-span-{n} to span a specific number of columns.

Note that CSS grid lines start at 1, not 0, so a full-width element in a 6-column grid would start at line 1 and end at line 7.

01
02
03
04

Grid Template Rows

Use the grid-rows-{n} utilities to create grids with n equally sized rows.

01
02
03
04
05
06

Grid Row Start / End Line

Use the row-start-{n} and row-end-{n} utilities to make an element start or end at the nth grid row line.

01
02
03

Grid Row Start / End

Use the row-span-{n} utilities to make an element span n rows.

01
02
03

Grid Auto Flow

Use the grid-flow-{keyword} utilities to control how the auto-placement algorithm works. grid-flow-row-dense backfills gaps left by spanning items.

01
02
03
04
05

Grid Auto Columns

Use the auto-cols-{size} utilities to control the size of implicitly-created grid columns.

01
02
03

Grid Auto Rows

Use the auto-rows-{size} utilities to control the size of implicitly-created grid rows.

01
02
03
04
05
06

Hover, focus, and other states

Prefix any utility with a state variant such as hover: or focus-visible: to apply it conditionally. Hover or tab to the cells below.

Breakpoints and media queries

Prefix a utility with a breakpoint such as md: or xl: to apply it from that screen size up. Resize the window to see the column count change.

01
02
03
04
05
06