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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:07:25+00:00 2026-06-18T07:07:25+00:00

I am wondering how to cover a <div> with some useful HTML component/image to

  • 0

I am wondering how to cover a <div> with some useful HTML component/image to make the <div>:

  • A) Unclickable (unreachable for mouse etc)
  • B) Look a little ~0.3f blur (because of it transparent foreground)
  • C) make the effect dynamic I mean make the <div> covered/uncovered by some
    event?

So my question is: What is the optimal way to make the previously mentioned effect with HTML, CSS, and Javascript?

  • 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-18T07:07:26+00:00Added an answer on June 18, 2026 at 7:07 am

    (A) Making the div “Unclickable (unreachable for mouse etc)”

    This can be accomplished by using the various CSS positioning elements to place two divs in the exact same location. Then to stack one div on top of the other, use z-index (the element with the higher z-index will be stacked on top of the element with the lower z-index). For example:

    HTML:

    <div id="div1">
        <a href="#">Link</a>
    </div>
    <div id="div2"></div>
    

    CSS:

    #div1, #div2 {
        width: 50px;
        height: 50px;
        top: 0;
        left: 0;
        position: fixed;
    }
    
    #div2 {
        z-index: 1;
    }
    

    (B) Making the div “Look a little ~0.3f blur (because of it transparent foreground)”

    To do this, you would use CSS opacity. For example:

    #div2 {
        opacity: .3;
    }
    

    (C) “Make the effect dynamic I mean make the covered/uncovered by some event.”

    You can accomplish this using Javascript. The simplest approach would probably be to use document.getElementById to add display:none to the div you want to remove.

    <script>
      document.getElementById('div2').style.display = 'none';
    </script>
    

    NOTE: These are not the only ways to accomplish this task. I am just trying to give you a launching point. I recommend reviewing the MDN links I posted and writing code that works best for what you are specifically trying to accomplish.

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

Sidebar

Related Questions

I was wondering if there was a way to make a div containing images
wondering if some of you know what javascript framework facebook is using ? Thanks
I have this code cuthtml += '<div style=background-image:url('+response.images[ii].attachment_image_src+'); background-position:center center; background-size:cover class=cut-image6 data-id='+data_id+' image-id='+image_id+'
I'm trying to convert a PDF to a PNG image (at least the cover
Thanks for taking some of your time. I was wondering if there was a
I was wondering what would be the most efficient way to make a map
I'm looking to recreate apple's cover flow effect using jQuery. I've looked at some
I was wondering if there is a library that provides developers with some sort
I'm trying to incorporate some design-by-contract techniques into my coding style. Postconditions look a
The title pretty much covers it. Wondering if anybody knows this. I'm seeing both

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.