CSS Flexbox Generator
Visual flexbox layout generator with code export.
Runs on this device · 0 B uploaded8px
.container {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: stretch;
gap: 8px;
}
Flexbox axes
- flex-direction
- sets the main axis; reverse values flip the item order.
- justify-content
- distributes items along the main axis.
- align-items
- aligns items on the cross axis.
- align-content
- spaces wrapped lines, so it has no effect with nowrap.