Frontend
CSS Flexbox
Arrange one-dimensional layouts without fragile spacing hacks.
Container
display: flex;Create a flex formatting contextflex-direction: column;Stack along the block directiongap: 1rem;Space items without child marginsflex-wrap: wrap;Allow items onto additional linesAlignment
justify-content: space-between;Distribute free space along the main axisalign-items: center;Center along the cross axisalign-self: flex-start;Override alignment for one itemmargin-inline-start: auto;Push an item toward the inline endSizing
flex: 1 1 0;Grow and shrink from a zero basisflex: 0 0 auto;Keep intrinsic sizing without growing or shrinkingmin-width: 0;Allow text-heavy items to shrink below their min-content widthflex-basis: 16rem;Set the starting main-axis size