CSS Centering Horizontal + Vertical in Grid with scrolling support

Date: 2021-03-26
.parent {
    display: grid;
    overflow: auto;
    /* optional */
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height: 100%;
}

.parent>.child{
    justify-self: center;
    align-self: center;
    /* optional */
    padding: 15px;
}
47860cookie-checkCSS Centering Horizontal + Vertical in Grid with scrolling support