piko

CSS Flexbox Generator

Explore how flex direction, wrapping, alignment, and gap position a group of items.

Runs on your device. Nothing you add is uploaded.

12
Preview
1234
CSS
.example {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 12px;
}

How to use CSS Flexbox Generator

  1. Adjust the controls to match your design.
  2. Review the preview while you edit.
  3. Copy the CSS into your stylesheet.

Questions

Justify-content distributes space along the direction of the flex items. Align-items works across that direction.

How this works

Builds a local preview and a standard CSS rule from the selected settings.

Everything happens in this browser tab. What you type or add stays on your device, and the page has no tracking. What you typed and your settings are kept in this browser so the tool opens the way you left it, except passwords, keys and tokens, which are never saved. Privacy