bootstrap 5 justify content center code example

Example 1: align items center bootstrap

<div class="d-flex align-items-start">...</div>
<div class="d-flex align-items-end">...</div>
<div class="d-flex align-items-center">...</div>
<div class="d-flex align-items-baseline">...</div>
<div class="d-flex align-items-stretch">...</div>

Example 2: bootstrap justify-content-center for md

<div class="row justify-content-md-center"></div>

Example 3: bootstrap justify-content-center for lg

<div class="row justify-content-lg-center"><div>

Example 4: bootstrap display flex

<div class="d-flex">I'm a flexbox container!</div>

Tags:

Html Example