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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:40:54+00:00 2026-05-26T04:40:54+00:00

I have an informational pop-up modal in my web application, which is basically just

  • 0

I have an informational pop-up modal in my web application, which is basically just a <div> with its “display” CSS attribute set to “none“. A snippet of JavaScript toggles that display attribute when the modal needs to appear.

In most places where this modal can be activated, it works just fine. However, there is one page on the site where some old YUI code brings up a modal in the form of a “YAHOO.widget.Panel” object. When someone triggers the informational event inside of this YUI modal, I need my informational modal to still appear on top of the YUI one.

This works fine in all browsers other than IE. However, in IE the informational modal is completely hidden because it appears behind the YUI one.

There are a number of questions on StackOverflow related to “z-index” CSS issues in IE, but most of them seem related to layout issues on the initial page load. The problem I’m running up against is the YUI Panel being created on-the-fly after page load.

No matter how high I set the z-index for my informational modal (nor how low I tell YUI to set the z-index for its modal)… IE always gives the YUI panel a higher z-index because it was created later.

Is there any clean workaround for a situation like this… where you need IE to give a higher z-index to a <div> created at page load time than to one created by JavaScript after the page load?

  • 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-26T04:40:55+00:00Added an answer on May 26, 2026 at 4:40 am

    To location of the panel on the page matters, the YUI panel is probably being appended to to body. When you call the .render() method of the YUI panel, specify the parent div to be the same as your popups parent div,

    yuipopup.render('infodivparent');
    

    that will make sure the z-indexes work properly.

    i.e change from this,

    <body>
    <div id="yui_panel" style="z-index: 2;"></div>
    <div id="content" style="z-index: 1;">
        <div id="mypopup" style="z-index: 100"></div>
    </div>
    </body>
    

    to this,

    <body>
    <div id="content" style="z-index: 1;">
        <div id="mypopup" style="z-index: 100"></div>
        <div id="yui_panel" style="z-index: 2;"></div>
    </div>
    </body>
    

    I should also note, time is never a factor with how the the DOM handles nodes. When it was added means nothing, only where it was added.

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

Sidebar

Related Questions

I have a web page where I show billing information in a pop. This
So I have a pop-up dialog in my application that tells the user about
I have a web page with DIV s with a mouseover handler that is
I have a pop up which contains an ASP.NET form, click the link Request
I have a need to create a small pop up information box when a
I would like to have information about the icons which are displayed alongside the
I have an information retrieval application that creates bit arrays on the order of
I have been trying to make the FullCalendar events use Facebox to pop up
I have a flash panorama that has hotspot links to pop-up windows that contain
I have an application that I've written in Adobe Flex. I have my main

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.