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