CSS, Web, Web Development, Layout.
class="flex__item"></div> </div> /* CSS */ .flex__container { display: flex; justify-content: center; align-items: center; } The effect is as follows: This method is particularly suitable for making the icon horizontally and vertically centered in the container. The difference is that the display