text center in middle code example
Example 1: css align center vertical and horizontal
.parent-class {
display: flex;
align-items: center;
justify-content: space-around;
}
Example 2: align center css
margin: auto;
.parent-class {
display: flex;
align-items: center;
justify-content: space-around;
}
margin: auto;