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