To align inline elements in CSS, there is the text-align property, and this way you can align not only text. It has several valid values, which are described in this article.
align-content - CSS: Cascading Style Sheets
CSS - Text Properties
HTML canvas textAlign Property - GeeksforGeeks
List content in category IT / CSS - Eqsash
CSS text-align Property, How to Align Text with CSS
How to Center Text & Headers in CSS Using the Text-Align Property
CSS text-align Property, How to align Text in CSS
How to use the position property in CSS to align elements ? - GeeksforGeeks
CSS Text Align Property (HTML and CSS Tutorial 58)
List content in category IT / CSS - Eqsash