CSS, Web, Web Development, Layout.
setting on the icon container is display: inline-flex . For example, the following example: <!-- HTML --> <div class="flex__container"> <svg> </svg> </div> /* CSS */ .flex__container { display: inline-flex; align-items: center; justify-content: center; } The effect is as follows: In this mode, if