Skip to content
ZeroServer.tools

CSS Flexbox Generator

Visually build flexbox layouts and copy the CSS.

gap8px
1
2
3
4
CSS
.container {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 8px;
}

Mastering flexbox layouts

Flexbox lays out items along a main axis set by flex-direction. justify-content distributes them along that axis, align-items positions them on the cross axis, and flex-wrap controls overflow onto new lines. Tweak the controls, watch the live boxes rearrange, and copy the CSS — generated entirely in your browser.

Related Design & CSS tools