FreeDev Tools

CSS Flexbox Generator

Visually configure flexbox properties and get the ready-to-use CSS.

Container Properties

Preview

1
2
3
4

CSS Output

.container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  align-content: normal;
  gap: 8px;
}

Flexbox is a one-dimensional layout system that distributes space along a main axis. justify-content controls alignment along the main axis while align-items controls the cross axis. flex-wrap allows items to wrap onto multiple lines, and align-content controls spacing of those lines.

Frequently Asked Questions

flex-direction, flex-wrap, justify-content, align-items, align-content, gap, and row-gap. These are all container-level flexbox properties.