vertical align text within a div code example
Example 1: align vertical center text div
display: flex;
align-items: center
Example 2: vertical align center text inside div
.center {
height: 309px;
line-height: 309px; /* same as height! */
}
display: flex;
align-items: center
.center {
height: 309px;
line-height: 309px; /* same as height! */
}