Bootstrap CSS Classes

Bootstrap CSS class .justify-content-*-center

<div class="d-flex justify-content-center">
  <div class="p-2">Flex item 1</div>
  <div class="p-2">Flex item 2</div>
  <div class="p-2">Flex item 3</div>
</div>

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

Preview

Check .justify-content-*-center in a real project

Click one of the examples listed below to open the Shuffle Visual Editor with the UI library that uses the selected component.

More Bootstrap CSS classes in Flexbox category

© 2024 Shuffle. All rights reserved.