css element align vertical code example
Example: css vertical align middle
/* Flex */
.center {
display: flex;
justify-content: center;
align-items: center;
}
/* Without Flex */
.parent {
position: relative;
}
.child {
position: absolute;
top: 50%;
transform: translateY(-50%);
}