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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:45:41+00:00 2026-05-18T12:45:41+00:00

I have an absolutely-positioned DIV that I need to trap onclick events for. It

  • 0

I have an absolutely-positioned DIV that I need to trap onclick events for. It turns out that, in IE7, the DIV seems to have no ‘footprint’ for things like clicking and even cursor. For example:

div {
      width: 200px; height: 200px;
      position: absolute;
      border: 10px solid black;
      cursor: pointer;
}

In IE7, that DIV has no ‘footprint’: it doesn’t react to onclick(), and its cursor doesn’t change to the pointer. Curiously, it DOES handle both those over its border – hence the large border in this example. Setting a background-color:

div { background-color: #fff; }

fixes the problem. But, in this case, that’s not possible – I need the DIV to have a transparent background.

I’ve come across this bug in the past, but I cannot for the life of me remember the IE hack to fix it.

  • 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-18T12:45:41+00:00Added an answer on May 18, 2026 at 12:45 pm

    Try using a transparent background image.

    I would suggest using a 2×2 or bigger .gif that is all transparent pixels. Set it to repeat on x and y and IE shouldn’t have an issue with the clicks.

    background: transparent url(path/to/spacer.gif) repeat left top;
    /* Not all of that is necessary, but I have a tendency to define it anyway. */
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an absolutely positioned div that has a width of 100% with a
I have a div that is absolutely positioned from the top left corner of
If I have a parent div that is positioned absolutely and then a child
I have an absolute positioned div that I need to get to to fill
I have a DIV container, .floatingPage , which is positioned absolutely over two other
I have an issue where I have a div that is positioned absoutely and
What I have: An absolutely positioned image of a plane that moves across and
I have a mobile website with 4 elements that are absolutely positioned inside a
I have a div that is positioned:absolute, this div extends outside the bounds of
I'm looking to achieve the following. I have an initially-empty absolutely positioned div (#description)

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.