I am trying to make a div appear in the middle of the browser. However, I am unable to find any form of guide working with the CSS I already have.
CSS
#register-modal {
    display: inline;
    position: absolute;
    z-index: 1;
    margin: 0 auto;
    background-color: aqua;
    top: 50%;
    left: 50%;
    text-align: center;
}
With this CSS I expected the div to appear in the middle of the browser windows, but it appears in the bottom right corner.
The HTML affected by the CSS forms a "modal" and thus I can't have the position be anything other than absolute.