CSS: gap, row-gap, column-gap (flex)

By Xah Lee. Date: . Last updated: .

gap (Spacing Between Items)

gap: length;

gap for between rows and between columns.

1
2
3
4
5
6
row-gap: length;

the spacing between rows, in multi-column, flex, and grid containers.

1
2
3
4
5
6
column-gap: length;

the spacing between columns, in multi-column, flex, and grid containers..

1
2
3
4
5
6

CSS. flex layout