Skip to main content

Preview

1
2
3
3 items

Container Properties

16px

Item Properties

Click an item in the preview to edit its properties

Layout Presets

Generated CSS

CSS
.container {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  gap: 16px;
}
Tailwind CSS
flex flex-row justify-start items-stretch gap-4

💡 Flexbox Tips

Main vs Cross Axis

The main axis is defined by flex-direction. justify-content aligns along main axis, while align-items aligns along the cross axis.

flex-grow

Controls how much an item grows relative to siblings. flex-grow: 1 on all items makes them equal width. Higher values get more space.

flex-shrink

Controls shrinking when there's not enough space. Set to 0 to prevent an item from shrinking below its flex-basis.

flex-basis

The initial size before growing/shrinking. Use 0 with flex-grow for truly equal-width items, or percentages for proportional layouts.

Need Help With CSS Layouts?

Brix340 creates responsive, pixel-perfect websites with modern CSS techniques.

Get a Free Quote