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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:17:46+00:00 2026-05-22T17:17:46+00:00

I have a drop down menu that is attached to a fixed navigation bar.

  • 0

I have a drop down menu that is attached to a fixed navigation bar. Similar to the one the current Twitter design uses.

Here is link to this issue: http://jsfiddle.net/JDahp/3/ (This has been updated to be far more simple than previous iterations)

I use jQuery to make the menu appear / disappear which works fine. The menu animates OVER the toolbar as opposed to under it.

I cannot understand why z-index isn’t overriding the usual visual stacking for the drop down menu?

Here are the relevant CSS properties

#top-stuff{
    position:fixed;
    top:0;
    left:0;
    z-index:12;
    width:100%;
}

.dropdown {
    position: absolute;
    z-index: 1;
}

A cut down version of the HTML:

<div id="top-stuff">
    <a href="" class="optionslinka">Options</a>
    <div class="dropdown" id="optionsdropdown">
        <!-- Drop down content is here -->
    </div>
</div>
  • 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-22T17:17:47+00:00Added an answer on May 22, 2026 at 5:17 pm

    Your fiddle is a little complex and busy for me to look through, but I think it’s likely your issue relates to the z-index bug that IE is known for (but has affected other browsers as well).

    Basically, if z-index isn’t defined on all of your parent containers, then each z-index will start a new ‘stacking context`, meaning they will not overlap properly. Think of 2 decks of cards rather than one.

    Try setting position:relative;z-index:auto; on all of the parent containers above .dropdown (or any other position: like absolute etc)

    Some resources to learn more:
    Drop Down Menu Issues: http://brenelz.com/blog/squish-the-internet-explorer-z-index-bug/
    An in depth look: http://caffeineoncode.com/2010/07/the-internet-explorer-z-index-bug/

    A similar issue to yours: http://richa.avasthi.name/blogs/tepumpkin/2008/01/11/ie7-lessons-learned/

    you’ll notice that any positioned element, with any z-index, that is located lower down in the code than the menus will appear above the menus—no matter what z-index the menu is given—exactly the opposite of what you want to happen.

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

Sidebar

Related Questions

I have this drop down menu that when one menu is clicked if there
I have a link that functions similar to a drop down menu in that
So, I have an animated drop down menu that slides down when your mouse
I have a drop down menu that looks like this: It works fine, but
I need to make tabs that also have drop down menu and requirements are
I have a form that I want to show a drop-down menu that shows
I have a drop down menu that is coded in HTML, CSS, and jQuery
So, basically I have this select / drop down menu that I use AJAX
I have a normal WinForms ToolStripDropDownButton's drop down menu that is populated dynamically. In
My problem is: I have a drop down menu and i want that when

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.