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

  • Home
  • SEARCH
  • 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 8648065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:13:41+00:00 2026-06-12T13:13:41+00:00

Think Google Chrome’s Inspect Element. When a user mouses over a line in Developer

  • 0

Think Google Chrome’s “Inspect Element.” When a user mouses over a line in Developer Tools, the element is “highlighted” on the screen. I am trying to replicate the same functionality, except that an element may be highlighted when a user mouses over that element instead of from a list.

My problem is this: When I highlight the element (by creating a div with a translucent background color with the same dimensions as the original element and positioned in the same location as the original element), the div has to be painted higher than that element (in order to be visible.) However, in some cases where there are sub elements that should be highlight-able, the “highlight” div is on top, preventing them from being select-able.

Some of the elements will have background images or colors, preventing the highlighting from showing up. Also, the markup may contain any number of elements with variating z-index values. I’ll update my question to reflect these constraints.

I’m looking for any suggestions for work-arounds or alternatives if this is not possible.

Here’s a fiddle to show what I mean.

Thanks in advance!

  • 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-12T13:13:43+00:00Added an answer on June 12, 2026 at 1:13 pm

    You can use CSS3 pointer-events:none;: http://jsfiddle.net/Shmiddty/BU27J/9/

    Alternatively, you can use z-index:-1;, but if your “highlighted” elements have a background of their own, you won’t see the highlighting div.

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

Sidebar

Related Questions

I think until v5 of Google Chrome the below code worked. Now in the
I think I read once that google chrome was working on some kind of
I think I may have found a bug with Google Chrome (16.0.912.75 m, the
The greatest example I can think of is the Google Chrome installation. I remember
This code snippet used to work. I think a recent update of Google Chrome
I am trying to make a simple Google Chrome extension - like finding a
I was writing user script for Google Chrome that would automatically open a specific
I want to use google chrome as a control. I think Enso does this
I am trying to create a simple javascript based extension for Google Chrome that
Ok, So about a year ago (I think) google went through a transition where

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.