Answers for "bootstrape div center align an image"

CSS
10

bootstrap 4 center image

/* used mx-auto d-block */

<img class="mx-auto d-block" src="https://www.w3schools.com/bootstrap4/paris.jpg" alt="https://www.w3schools.com/bootstrap4/paris.jpg"/>
Posted by: Guest on October-18-2020
0

css hot to center image in bootsrtap container

.center-block {
    display: block;
    margin-left: auto;
    margin-right: auto;
 }
Posted by: Guest on January-30-2022

Browse Popular Code Answers by Language