flex put items in center of page stacked vertically code example
Example 1: css flex center horizontally and vertically
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;
}