display: flex align-items: center code example
Example 1: css flex center
display: flex;
align-items: center;
justify-content: center;
Example 2: flex box align items
.container {
justify-items: center;
}
display: flex;
align-items: center;
justify-content: center;
.container {
justify-items: center;
}