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.
-->
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.
Flow is just display: flex
with flex-wrap
, but it’s much easier to remember and use.
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”.
You can use justify-content
to shift all items to the left, center, or right.
Flow
lets content flow to the next row when there is insufficient space.
You can change the gap between items with the gap
property or the --gap
variable.
Since Flow
uses display:flex
, you can use justify-content
to align items horizontally.
Likewise, you can use align-items
to align items vertically. Though you probably won’t need to do this often.
Splendid Labz is free because we love developers and we want to contribute back to the ecosystem.
We only charge for access to the documentation to keep the project going. If you don't wish to pay, feel free to use the content from the features tab, our blogs or our videos as your guide.
Flow
lets content flow to the next row when there is insufficient space.
You can change the gap between items with the gap
property or the --gap
variable.
Since Flow
uses display:flex
, you can use justify-content
to align items horizontally.
Likewise, you can use align-items
to align items vertically. Though you probably won’t need to do this often.
Here’s the CSS for Vertical
.
Splendid Labz is free because we love developers and we want to contribute back to the ecosystem.
We only charge for access to the documentation to keep the project going. If you don't wish to pay, feel free to use the content from the features tab, our blogs or our videos as your guide.
Here’s the CSS for Vertical
.
Class | Description |
---|---|
justify-start | Aligns children items to the left. |
justify-center | Aligns children items to the center. |
justify-end | Aligns children items to the right. |
justify-around | Distributes spaces equally around items |
justify-between | Distributes space equally between items |
Variable | Default | Description |
---|---|---|
--gap | 1rem | Gap between items |
Splendid Labz is free because we love developers and we want to contribute back to the ecosystem.
We only charge for access to the documentation to keep the project going. If you don't wish to pay, feel free to use the content from the features tab, our blogs or our videos as your guide.
Class | Description |
---|---|
justify-start | Aligns children items to the left. |
justify-center | Aligns children items to the center. |
justify-end | Aligns children items to the right. |
justify-around | Distributes spaces equally around items |
justify-between | Distributes space equally between items |
Variable | Default | Description |
---|---|---|
--gap | 1rem | Gap between items |