Sorry if the title is confusing.
I have the main container div with display: flex
, justify-content: center
, and align-items: center
. Inside this div, I have another 2 divs, at the moment everything is centered, my issue is that I want the first div to be centered and the next div to be underneath (image). How can I accomplish this using flex?
.container {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
min-height: 500px;
border: solid 1px black;
}
.circle {
width: 12rem;
height: 12rem;
background-color: black;
border-radius: 9999px;
}
.square {
width: 12rem;
height: 6rem;
background-color: black;
margin-top: 2rem;
}
<div class="container">
<div class="circle"></div>
<div class="square"></div>
</div>
Thanks