html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    min-height: 1000px;
}

.parent {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: auto;
}

.block {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -125px 0 0 -125px;
}
