horizontal align div center code example
Example 1: css align items vertical center
.parent {
display: flex;
justify-content: center;
align-items: center;
}
Example 2: how to horizontal center a div in css
#inner {
width: 50%;
margin: 0 auto;
}