I am struggling to center an image using only Bootstrap\'s CSS-classes. I already tried several things. One was adding Bootstrap CSS-class mx-auto to the
img in the center of its parent.img is an inline element, text-center aligns inline elements in the center of its container should the container be a block element.
mx-auto centers block elements. In order to so, change display of the img from inline to block with d-block class.
d-flex and justify-content-center on its parent.