CSS tool
CSS Flexbox Generator
A CSS flexbox generator. Dial in direction, wrap, alignment, and gap, then copy CSS or Tailwind. It all stays on your device.
Like the tool? Find a bug?Share with usGenerator
Set direction, wrap, alignment, and gap. Click a box to select it, then type how many divs to add. CSS stays on your device.
Preview
Display
Direction
Wrap
Justify
Align
Item 1
Basis
Self
.flex {
display: flex;
justify-content: center;
align-items: center;
gap: 16px;
}
flex justify-center items-center gap-4
<div class="flex"> <div>1</div> <div>2</div> <div>3</div> </div>