how to align block in center code example
Example 1: css align items vertical center
.parent {
display: flex;
justify-content: center;
align-items: center;
}
Example 2: align center css
margin: auto;
.parent {
display: flex;
justify-content: center;
align-items: center;
}
margin: auto;