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 8377743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:44:54+00:00 2026-06-09T15:44:54+00:00

I wrote a script that when certain buttons are clicked on the webpage, the

  • 0

I wrote a script that when certain buttons are clicked on the webpage, the entire page gets greyed out until the user clicks either ‘yes’ or ‘no’. This seemed simple enough, but I’m running into conflicts with the menus that I am using from Superfish. The menus are still able to be accessed when the rest of the page is greyed out.

I troubleshot it down to the fact that the superfish css scripts use a series of

Position: relative

or

Position: absolute

So I figured that I will need to either figure out why my grey covering box isn’t working or hard code locations for my navbar into the source. My concern is that if I do that, then won’t the setup be only to my resolution?

Is there something that I missed on my grey box coding that would make this happen?

#cover {
            display:none;
            position:absolute;
            left:0px;
            top:0px;
            width:100%;
            height:100%;
            background:gray;
            filter:alpha(Opacity=50);
            opacity:0.5;
            -moz-opacity:0.5;
            -khtml-opacity:0.5
}

I don’t have much experience with css. I looked for a few hours for a solution yesterday, but couldn’t find anything related to the problem I am experiencing.

Thanks.

  • 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-09T15:44:56+00:00Added an answer on June 9, 2026 at 3:44 pm

    I ran into problems trying to use the setting below.

    #cover {
            display:none;
            position:absolute;
            left:0px;
            top:0px;
            width:100%;
            height:100%;
            background:gray;
            filter:alpha(Opacity=50);
            opacity:0.5;
            -moz-opacity:0.5;
            -khtml-opacity:0.5
            z-index:100
    }
    

    I figured out that z-index has to be set immediately after position is declared, or else it won’t work at all.

    #cover {
            display:none;
            position:absolute;
            z-index:100
            left:0px;
            top:0px;
            width:100%;
            height:100%;
            background:gray;
            filter:alpha(Opacity=50);
            opacity:0.5;
            -moz-opacity:0.5;
            -khtml-opacity:0.5
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wrote a user script that performs a certain operation on selected text in
I am trying to wrote a script that, when the page is loaded, change
I wrote a python script that depends on a certain NFS share to be
I wrote a little script that exports certain Excel cell values into Word. However,
I wrote a script that uses xcodebuild to generate an AdHoc build of an
I have wrote a script that was run from a spreadsheet. I had One
My minecraft server tends to crash fairly often so I wrote a script that
I wrote a PHP script that retrieves values from a MySQL Query. I used
I wrote a .vbs script that emails the admin with the current log file
I wrote a Python script that does some task to generate, and then keep

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.