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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:53:35+00:00 2026-06-07T22:53:35+00:00

I am building my website with inspecting elements option to inspect each elements separately

  • 0

I am building my website with inspecting elements option to inspect each elements separately like firebug. I like to built the styles like newer version of Firefox which will blur all the elements except the selected element. Any idea on how to do this? The example of the needed output is given below.

EDIT : Please note that, here the element i need to select may have lower DOM hierarchy than the other elements. For eg. i may need to gray out the body container and if i select some internal elements which should not have the grey effect.

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-06-07T22:53:37+00:00Added an answer on June 7, 2026 at 10:53 pm

    Something like this:

    http://jsfiddle.net/lollero/T7PyK/

    Clicking any element will show overlay and isolate the element.
    Clicking overlay will undo that.

    JS:

    $('*').on("click", function( e ) {
    
        e.stopPropagation();
    
        var self = $(this),
            overlay = $('#overlay');
    
        if ( !self.hasClass('active') ) {
    
            if ( self.is(':not(#overlay)') ) {
                self.addClass('active');
            }
            overlay.fadeTo(400, 0.7);
    
        }
        if ( self.hasClass('active') ) {
    
            overlay.on("click", function() {
                overlay.fadeOut(400, function() {
                    self.removeClass('active');
                    });
            });
    
        }
    
    });
    ​
    

    CSS:

    #overlay {
        display: none;
        background: #000;
        position: fixed;
        z-index: 100;
        top: 0px;
        right: 0px;
        bottom: 0px;
        left: 0px;
    }
    
    .active {
        position: relative !important;
        z-index: 101 !important;
        background: #fff;
        box-shadow: 0px 0px 50px #111;
    }
    ​
    

    HTML:

    <div id="overlay"></div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a website which will show comics. I'd like to store each image
I'm building a website and having some problem. if the HTML code is like:
We are building an Intranet website using Plone 4.1.3 and would like to know
Building a website. When I order my tags like this, LightCycle works but Lightbox
I'm building a website using MAMP on OS10 Leopard . I'd like to be
I'm building website where each user has different classes +----+-----------+---------+ | id | subject
I'm building a website to learn PHP and have just built a membership app.
I'm building a website, where elements of the navigation bar are animated using HTML5's
Building a website that has English & Japanese speaking users, with the Japanese users
I am building a website templating system where multiple user can create their own

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.