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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:45:48+00:00 2026-05-30T21:45:48+00:00

In my web app, I’m displaying a notification DIV. I would like to dim

  • 0

In my web app, I’m displaying a “notification” DIV.

I would like to “dim” the rest of the page, so that the notification DIV stands out even more when displayed.

Is there a reasonably easy way of doing so?

This question is only concerned with visual effects, NOT the functionality of the rest of the page.

Here is an example of the functionality I found elsewhere on the web (though in this case the dialog was a pop-up JS one, and not a DIV):

enter image description here

  • 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-05-30T21:45:50+00:00Added an answer on May 30, 2026 at 9:45 pm

    You can use this CSS:

    #overlay{
      position:fixed;
      width:100%;
      height:100%;
      top:0;
      left:0;
      opacity:0.6; /* see below for cross-browser opacity */
    }
    

    Working Example

    In the example above, this bit creates overlay:

    // main overlay container
    $('<div id="__msg_overlay">').css({
          "width" : "100%"
        , "height" : "100%"
        , "background" : "#000"
        , "position" : "fixed"
        , "top" : "0"
        , "left" : "0"
        , "zIndex" : "50"
        , "MsFilter" : "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"
        , "filter" : "alpha(opacity=60)"
        , "MozOpacity" : 0.6
        , "KhtmlOpacity" : 0.6
        , "opacity" : 0.6
    
    }).appendTo(document.body);
    

    Dialog box is then added on that overlay element with higher z-index.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My web App prepares out of a db for one or two minutes a
I have a huge web app that is having issues with memory leak in
In my (PHP) web app, I have a part of my site that keeps
Our web app automatically emails us when a page execution goes beyond a second
We have an MVC web app that uses FormsAuthentication and also stores a couple
A web app that I'm writing throws this compiletime error Error 1 The type
The App I need to implement a web app that will be used by
I have a new web app that is packaged as a WAR as part
I have created one web app using mvc and in that used form authentication
My web app has a template that is used in all pages. I want

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.