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