Centering Horizontally And Vertically With Flexbox

Code

#container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}