align image center using bootstrap 4 code example Example: bootstrap class align center image class="mx-auto d-block"