CSS, Web, Web Development, Layout.
class="action"></div> </div> /* CSS */ .flex__container { display: flex; flex-direction: column; justify-content: center; align-items: center; } The effect is as follows: In the Flexbox layout, you can also achieve horizontal and vertical centering of Flex projects in the Flex container like this: