Is it possible to center an inline-block element and if so, how? July 20, 2022 by Tarik Simply set text-align: center; on the container. Here’s a demo.