Columns with auto width

Just place column into row

col
col
col
col
col
col
col

Responsive columns

Use prefixes to change column width on different screens

col-md-6 col-lg-3 (full width on xs resolution by default)
col-md-6 col-lg-3 (full width on xs resolution by default)
col-xs-6 col-lg-3
col-xs-6 col-lg-3

Nested grid

You can place column in column, but you need to wrap nested columns to apply gutter

col
col
col
col
col
col

Auto width for column

Use prefix "auto" if you don't want to apply width on column

col
col

Alignment for rows

By default all columns in row are stretched



col
col
col

Use prefixes "top", "middle", "bottom" to align all columns in row



col
col
col


col
col
col


col
col
col

Distribution for rows

Use prefixes "right", "left", "center", "around", "between" to align all columns in row

Right aligned columns

col
col

Left aligned columns

col
col

Centered columns

col
col

Arround alignment

col
col

Between alignment

col
col

Direction for rows

Use prefixes "row", "row-reverse", "column", "column-reverse"

By default all rows has "row" direction. you don't need to use "row" prefix.

Note: to avoid collapsing bug in IE11 for column and column-reverse direction "stretch" prefix should be used for columns (col-stretch | col-xs-stretch).
If you don't need to support IE11 no need to use "stretch" prefix.

col 1
col 2
col 3

Reversed row

col 1
col 2
col 3

Column direction

col 1
col 2
col 3

Reversed column direction

col 1
col 2
col 3

Alignment for columns

Use prefixes "top", "middle", "bottom" to align column



col
col
col
col

Ordering for columns

Use prefixes "first", "last", "ordered" to order columns

col
col-xs--first col-md--ordered col-lg--last
col

Offsets for columns

Use offset prefixes for column to apply custom offset

col
col

Gutters

Use gutter prefixes for rows to customize gutters

Default (without prefixes)

col
col
col

Without gutters (row--gutter-none)

col
col
col

Large gutter (row--gutter-large)

col
col
col

grid2flex examples

Text alignment

Use "baseline" prefix to better bottom text alignment

HEADER 1

HEADER 2

Footer at bottom using grid2flex

Header

footer

Header

Header description

footer