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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:40:50+00:00 2026-06-13T06:40:50+00:00

Here is the fiddle: http://jsfiddle.net/hrQG6/ HTML <div id=’map’> <div class=’hotspot’ id=’hs1′> <div class=’info-window’> Foobar

  • 0

Here is the fiddle: http://jsfiddle.net/hrQG6/

HTML

<div id='map'>
    <div class='hotspot' id='hs1'>
        <div class='info-window'>
            Foobar
        </div>
    </div>
    <div class='hotspot' id='hs2'>
        <div class='info-window'>
            Foobar
        </div>
    </div>
</div>

CSS

.hotspot {
    position: absolute;
    z-index: 10;
    background-color: blue;
    height: 30px;
    width: 30px;
} 
.info-window {
    display: none;
    height: 250px;
     width: 250px;   
    background-color: green;
    position: absolute;
    z-index: 9999;
}​

The .hotspot elements show in the container. The .info-window elements do not show by default. Clicking a .hotspot will display its corresponding .info-window. However, I want the .info-window to cover any .hotspot elements underneath it.

Instead, .hotspot elements are on top of the .info-window element. Conceptually, I’m misunderstanding the use of position and z-index.

  • 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-13T06:40:51+00:00Added an answer on June 13, 2026 at 6:40 am

    By removing

    z-index: 10;
    

    from your .hotspot I believe it solves your problem.

    updated fiddle

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

Sidebar

Related Questions

Here is my fiddle: http://jsfiddle.net/jamesbrighton/wxWgG/4/ HTML: <div> <p class=click>Click 1</p> <p>This should be ignored</p>
I've prepared a fiddle here: http://jsfiddle.net/zakbx/4/ HTML <!-- filters --> <ul class=blog-detail-dropdown> <li>Select category
Here is the fiddle: http://jsfiddle.net/6Lk4s/ <div class=box> <div class=c1></div> <div class=c2></div> </div> I try
Fiddle here: http://jsfiddle.net/cgweb87/r3NEX/ When you click on the h2, it slides the div up
Fiddle here: http://jsfiddle.net/F6nJu/ I have a colored box: <div id=colorblock></div> #colorblock { background:#3ff; width:
You can see the fiddle here: http://jsfiddle.net/easeS/4/ Here is the html/css I have: #main
Here's my fiddle : http://jsfiddle.net/34TM4/1/ As you can see, the red div has a
Here's my fiddle: http://jsfiddle.net/e6kCH/15/ It may sound stupid, but I can't find a way
Here's my fiddle : http://jsfiddle.net/JWww3/ I'm not sure to understand why this code is
Here is my Fiddle: http://jsfiddle.net/LLFpp/ I'm just starting to learn CSS and Divs (moving

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.