'Flexbox first element on center and the rest below

There is a good chance someone has asked this question already, but I can't seem to figure out the right keywords to find the answer. I want my first element in a flexbox to be centered and the rest to align below it. Here's a picture of what I am trying to do.

enter image description here

<div style="justify-content:center; flex-direction: column;" >
    <div></div>
    <div></div>
</div>

is not what I am trying to achieve



Solution 1:[1]

For the center one div, use:

align-self: center;

And for the bottom ones, use:

align-self: flex-end;

Then you can position it with margins correctly

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dev-Siri