Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8382893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:02:04+00:00 2026-06-09T17:02:04+00:00

So, with that said, essentially, the case that always comes up. -modal and overlay

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T17:02:06+00:00Added an answer on June 9, 2026 at 5:02 pm

    Use this as your overlay:

    .overlay {
            background: transparent url(overlay.png) repeat top left;
            position: fixed;
            top: 0px;
            bottom: 0px;
            left: 0px;
            right: 0px;
            z-index: 100;
        }
    

    And this is overlay.png: (right click and save as)
    And this can be your image that is referenced in the background above.

    This is the markup for the overlay:

    <div class="overlay" id="overlay1" style="display:none;"></div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just recieved an error message that said union __anonymous can only be a part
In C# you can not have indexed properties. That said, how do I convert
My buddy read an OpenGL book that said interleaving your vertex pointers and the
I'm riding Rails 3 and using Prototype. That said I'm only really asking a
Does jQuery validation plugin have some dependencies? For example, I saw blogposts that said
I am really only a hobbyist, who has aspirations far too grand, that said,
Somebody said that when your PHP code and application use global variables then it
It is said that When an interrupt is sent by the PIC, the PIC
It is said that fork system call creates a clone of the calling process,
Before someone said that I did not read I may say that I read

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.