Vertically and horizontally centered position with CSS Flexbox


html, body {
    height: 100%;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
}