center align flex div code example
Example 1: css flex center
display: flex;
align-items: center;
justify-content: center;
Example 2: how to horizontally center header at the top of page with flexbox css
.box.flex {
display: flex;
justify-content: center;
}