← All tools
Learn and Test Flexbox
Interactive flexbox playground to learn and experiment with CSS flexbox properties.
Container Properties
Item Properties
Item 1
Item 2
Item 3
1
2
3
.container {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: stretch;
gap: 8px;
}
.item-1 {
flex-grow: 0;
flex-shrink: 1;
order: 0;
}
.item-2 {
flex-grow: 0;
flex-shrink: 1;
order: 0;
}
.item-3 {
flex-grow: 0;
flex-shrink: 1;
order: 0;
}How to use this tool
- 1.Adjust the container properties to see how items are laid out
- 2.Modify individual item properties like flex-grow and order
- 3.Copy the generated CSS for both container and items