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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:09:09+00:00 2026-05-22T19:09:09+00:00

Is there a way, in CSS, I can make an element click-through-able. I have

  • 0

Is there a way, in CSS, I can make an element click-through-able. I have an absolutely positioned <div> covering a link. I’d like to be able to click the link through the overlay <div>. The overlay has a mostly transparent background, and the link has no covering pixels.

I’ve tried background: url('...') transparent, but to no avail.

Here is a JSFiddle demonstrating my problem. The link can be clicked in IE8, but not in FireFox. What I want to do is make an image ticker in the #underlay div. The overlay is so that I can have a background with a gradient from solid to transparent on the bottom and top, so I can make the images sort of ‘scroll into nothing’, without fading the entire image out at once, if this makes sense (if anyone has an android phone, try scrolling your memos and watch the top/bottom of the screen – the memos fade into nothing).

  • 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-22T19:09:10+00:00Added an answer on May 22, 2026 at 7:09 pm

    I’ve fixed your problem by adding pointer-events: none; to the absolute block.

    body {
      margin: 0;
      padding-left: 10px;
      font: 20px Arial, sans-serif;
      line-height: 30px;
    }
    a:hover {
      color: red;
    }
    #overlay-blocking,
    #overlay-passing{
      position: absolute;
      height: 30px;
      width: 10em;
      left: 0;
    }
    
    #overlay-blocking {
      top: 30px;
      background: rgba(0,100,0, .2);    
      pointer-events: none;
    }
    #overlay-passing {
      top: 0;
      background: rgba(100,0,0, .2);    
    }
    <a href="#">Link blocked</a><br>
    <a href="#" title="hoverable">Link available</a><br>
    <a href="#" title="hoverable">Link available</a><br>    
    
    <div id="overlay-blocking"></div>
    <div id="overlay-passing"></div>
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to make a Radio Button enabled/disabled (not checked/unchecked) via CSS?
Without using Javascript, is there a way to make a CSS property toggle on
Is there any way of pulling in a CSS stylesheet into FireFox 2 or
Is there any syntactical way in jQuery to define multiple CSS attributes without stringing
Is there a nicer way of styling a <hr /> tag using CSS, that
is there way thats i can preselect an item when the page loads or
Is there a way to make a box slant its sides. I am trying
Is there way in next piece of code to only get the first record?
Is there a way to enforce constraint checking in MSSQL only when inserting new
Is there any way to check whether a file is locked without using a

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.