Flexbox lays items out in a row or a column. Set display: flex on a container; its children become flex items.
Container properties
flex-direction:row(default) orcolumn.justify-content: alignment on the main axis:flex-start,center,space-between,space-around.align-items: alignment on the cross axis:stretch,center,flex-start.flex-wrap: wrap: lets items move to the next line.gap: space between items.
Item properties
flex: 1 lets an item grow to fill space. order changes its visual order.