So, with that said, essentially, the case that always comes up.
-modal and overlay appears,
-user scrolls down
-user can click stuff under the overlay
How do i fix that? Right now, the main issue is with the overlay.
Its CSS is as follows:
.overlay
{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: black;
display: none;
z-index: 7000;
}
Since i am using it in a asp page, the depth of the html is like as follows:
<html>
<body>
<form>
<div class = "overlay"></div>
<div class = "modal">...</div>
</form>
</body>
</html>
I wasnt sure if that meant anything.
Either we can arrange it so that it can stretch the height/width of the overlay or we can make it so the overlay and modal move when you scroll. I just dont know how to do them
Use this as your overlay:
And this is overlay.png: (right click and save as)

This is the markup for the overlay: