Flow

Flow is just display: flex and flex-wrap: wrap. It’s named Flow because it allows elements within to flow to another line when there’s insufficient space.


Let items flow to the next line

Flow is just display: flex with flex-wrap, but it’s much easier to remember and use.

index.html
<div class="Flow"> ... </div>
Lorem
ipsum
dolor
sit
amet
consectetur
adipisicing
elit

Adjust the space between items easily

With Flow, you can adjust space between items with gap. It’s more intuitive than margin because there’s no need to deal with “margin collapse”.

index.html
<div class="Flow gap-8"> ... </div>
Lorem
ipsum
dolor
sit
amet
consectetur
adipisicing
elit

Easily justify items to the left, center, or right.

You can use justify-content to shift all items to the left, center, or right.

Start
One
Two
Three
Center
One
Two
Three
End
One
Two
Three