Please take a look at the following image, we are using bootstrap carousel to rotate the images. However, when the window width is large, the image doesn\'t align with the b
In Bootstrap 4, you can add mx-auto class to your img tag.
mx-auto
img
For instance, if your image has a width of 75%, it should look like this:
Bootstrap will automatically translate mx-auto to:
ml-auto, .mx-auto { margin-left: auto !important; } .mr-auto, .mx-auto { margin-right: auto !important; }