bootstrap image container code example

Example 1: bootstrap 4 center image

/* used mx-auto d-block */

https://www.w3schools.com/bootstrap4/paris.jpg

Example 2: bootstrap Aligning images

Align images with the helper float classes or text alignment classes.
block-level images can be centered using the .mx-auto margin utility class.

...
...
...

Example 3: bootstrap Image thumbnails

In addition to our border-radius utilities, you can use 
.img-thumbnail to give an image a rounded 1px border appearance.

...

Example 4: img-fluid bootstrap

 //This will make your image responsive

Tags: