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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:05:32+00:00 2026-06-14T19:05:32+00:00

I have an issue with nested z-indexes on Firefox, and probably other browsers too,

  • 0

I have an issue with nested z-indexes on Firefox, and probably other browsers too, where i have a div with a z-index of 30000 sitting below a label with a zindex of 9000. I thought this was caused by the div with the 30000 z-index sitting inside a div with a 2000 s-index, but I removed this and it had no effect.

Is there anything obvious here that would cause this problem?

<div class="field row olabel end_date">    
    <label for="cc_end_year" generated="true" class="error">* required</label>    
</div>

Further down in my markup, I have a popup message that is shown/hidden on rollover of a piece of text.

<div class="field row olabel">
   <div style="display:none;" class="whats_this_popup"></div>
</div>

My CSS:

#order_form .row.end_date {
   position: relative;
   z-index: 9000;
}    
label.error {
   z-index: 9001;
}
.whats_this_popup {
   left: 360px;
   padding: 20px;
   position: absolute;
   width: 205px;
   z-index: 30000;
}
#order_form .row {
   width: 435px;
   z-index: 2000;
}
  • 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-14T19:05:32+00:00Added an answer on June 14, 2026 at 7:05 pm

    This is caused by stacking context. The stacking context of the former div has z-index 9000, while the stacking context of the latter has z-index 2000.

    You are giving the label a z-index of 9001 within its parent only. The z-index is meaningless outside of the stacking context of the parent. Similarly, by specifying a z-index of 30000 for .whats_this_popup, you are saying that it will show in front of any of its siblings that have a z-index less than 30000, not anything on the page that has z-index < 30000.

    Giving the latter containing div an index of 30000 will lead to your desired results.

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

Sidebar

Related Questions

I have a couple of div tags nested within each other and a few
So what the issue is, i have 2 for loops one nested within another.
I have an issue using the protectedObservable custom binding below found at this link.
I have strange issue with nested left-joins in postgresql... It's hard to explain, but
I have an issue with a nested if statement when inputting values 60000.01, 70000.01,
I have a model Issue and a nested Model Relationship In the issue.rb I
I have the issue that i have a viewmodel (MasterViewModel) with a nested viewmodel
I have a similar issue as in this question: linq question: querying nested collections
Looking for help with a tripple nested repeater logic issue I have. Background I
I have some unexplained weirdness with a nested DIV's margin leaking out of the

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.