How to center inline elements (images, videos, and buttons) using block-level elements with CSS?

Do you know text centering (“text-align: center”) does not work on Inline Elements? Text centering works on block-level elements. Inline…