CSS: gap (flexbox)
gap (Spacing Between Items)
- CSS property
gapis a shorthand forrow-gapandcolumn-gap. - They are properties for Flexbox container.
- They add space between the items, but does not actually add margin of the items.
gap: length-
gap for between rows and between columns.
123456
row-gap: length-
the spacing between rows, in multi-column, flex, and grid containers.
123456
column-gap: length-
the spacing between columns, in multi-column, flex, and grid containers..
123456