CSS: gap, row-gap, column-gap (flex, grid)
gap (Spacing Between Items)
- CSS property
gapis a shorthand forrow-gapandcolumn-gap. - They are properties for the container of Flexbox or Grid Layout .
- It specify width between the items, but does not add margin to the items.
gap: length;-
gap for between rows and between columns.
123456
row-gap: length;-
the spacing between rows.
123456
column-gap: length;-
the spacing between columns.
123456
CSS. flex layout
- CSS: Flexbox Layout
- CSS: flex-direction
- CSS: flex-wrap
- CSS: flex-flow
- CSS: gap, row-gap, column-gap (flex, grid)
- CSS: justify-content (flex, grid)
- CSS: justify-items (flex, grid)
- CSS: align-content (flex, grid)
- CSS: align-items (flex, grid)
- CSS: align-self (flex, grid)
- CSS: order (for flex items)
- CSS: flex (flex-grow, flex-shrink, flex-basis)
CSS grid layout
- CSS: Grid Layout
- CSS: grid-template-columns
- CSS: grid-template-rows
- CSS: grid repeat()
- CSS: grid-row, grid-column
- CSS: grid-area
- CSS: grid-template-areas
- CSS: gap, row-gap, column-gap (flex, grid)
- CSS: justify-content (flex, grid)
- CSS: justify-items (flex, grid)
- CSS: justify-self (grid)
- CSS: align-content (flex, grid)
- CSS: align-items (flex, grid)
- CSS: align-self (flex, grid)