center children with flex code example
Example 1: center wrapped flex children
.container {
display: flex;
justify-content: space-around;
/* OR */
justify-content: space-evenly;
}
Example 2: centering with flexbox
/* HORIZONTAL */
justify-content: center;
/* VERTICAL */
align-items: center;