how to center align in bootstrap code example

Example 1: align eliment in center of row bootstrap

<div class="row justify-content-center">
  ...inner divs and content...
</div>

Example 2: bootstrap center

<div class="row h-100">
   <div class="col-sm-12 my-auto">
     <div class="card card-block w-25">Card</div>
   </div>
</div>

Example 3: how to center vertically in bootstrap col

<div class="my-auto">
  ...inner divs and content...
</div>

Example 4: bootstrap display flex

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

Tags:

Java Example