center vertically in flex div code example
Example 1: css flex center horizontally and vertically
display: flex;
align-items: center;
justify-content: center;
Example 2: display flex vertical align center css
justify-content: center; /* Horizontal */