CSS, Web, Web Development, Layout.
and there are many ways to do it. The most common is to set the alignment on the Flex container and set margin: auto on the Flex project. Let’s first look at setting the alignment on the Flex container. Set alignment on Flex containers and Flex projects From the article “ Alignment in Flexbox