How to make my overlay full page

My overlay is only covering a portion of my page and on scrolling down it disappears how do I make t cover it all?

<div id="popup-overlay"></div>
#popup-overlay {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.685);
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 9998;
    display: block;
    overflow-y: hidden;
    overflow-x: hidden;
1 Like

Try using position: fixed instead.

It worked the fixed thing did work!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.