is now part of Shuffle™. You can use the editor on this domain, but we encourage you to try Shuffle →. Shuffle™ includes templates for Bootstrap, Bulma, Material-UI, and Tailwind CSS.

Bootstrap class: .align-content-*-around

<div class="d-flex flex-wrap align-content-around">
  <div class="p-2">Flex item</div>
  <div class="p-2">Flex item</div>
  <div class="p-2">Flex item</div>
  ...
</div>

<!-- responsive variations -->
<div class="d-flex align-content-sm-around">...</div>
<div class="d-flex align-content-md-around">...</div>
<div class="d-flex align-content-lg-around">...</div>
<div class="d-flex align-content-xl-around">...</div>

Preview

Flex item
Flex item
Flex item
Flex item
Flex item
Flex item
Flex item
Flex item
Flex item
Flex item
Flex item
Flex item
Flex item
Flex item

Tips 💡

More in Bootstrap Flexbox