Flexbox is a one-dimensional layout method for arranging items in rows or columns. It makes it easy to align and distribute space among items.
Container Properties
display: flex— enables flexbox on the containerflex-direction—row,column,row-reverse,column-reversejustify-content— horizontal alignment:flex-start,center,space-between,space-aroundalign-items— vertical alignment:flex-start,center,stretchflex-wrap—nowrap(default),wrapgap— space between flex items
Item Properties
flex-grow— how much the item should growflex-shrink— how much the item should shrinkflex-basis— initial size before growing/shrinkingflex— shorthand:flex: 1= grow equallyalign-self— override container's align-items for one item