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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T06:32:16+00:00 2026-06-02T06:32:16+00:00

Two problems, one biggy one little’n. I have a lovely dropdown menu that’s giving

  • 0

Two problems, one biggy one little’n.

I have a lovely dropdown menu that’s giving me no grief in any other browser except IE7. In IE7 it seems to ignore the z-index value of the dropdown’s containing ul and puts its behind the content like so:

Comparison of IE7 to firefox

The second problem is that (you will have to try the menu to see this) when the ul first appears after you hover over a menu item, it’s width is small and it sort of pops into size. (Only in IE7 again)

You can see the page in action here: http://rcnhca.org.uk/sites/first_steps/

Here is the relevant HTML markup (note I am using the 960 grid system):

    <div id="header">
        <div class="container_16">
            <div class="grid_16" id="breadcrumbs">
                <a href="http://rcnhca.org.uk/sites/first_steps" id="home" class="grid_1 alpha"></a>

                <ul id="parent" class="grid_15 omega">
                <li><a href="http://rcnhca.org.uk/sites/first_steps/">Select a topic</a><ul class="child"><li><a href="http://rcnhca.org.uk/sites/first_steps/getting-started/">Getting started</a></li><li><a href="http://rcnhca.org.uk/sites/first_steps/communication/">Communication</a></li><li><a href="http://rcnhca.org.uk/sites/first_steps/health-safety-and-security/">Health, Safety and Security</a></li><li><a href="http://rcnhca.org.uk/sites/first_steps/personal-and-people-development/">Personal and people development </a></li><li><a href="http://rcnhca.org.uk/sites/first_steps/quality/">Quality</a></li><li><a href="http://rcnhca.org.uk/sites/first_steps/equality-diversity-and-rights/">Equality, diversity and rights </a></li><li><a href="http://rcnhca.org.uk/sites/first_steps/clinical-skills/">Clinical skills</a></li><li><a href="http://rcnhca.org.uk/sites/first_steps/additional-material/">Additional material</a></li></ul></li>                  </ul>
            </div>
            <div id="supplements" class="grid_16">


                <div id="competency_checklist"><a href="#">Competency checklist</a></div>
            </div>
        </div>
    </div>

And it’s accompanying CSS

/* =============================================================================
   Header
   ========================================================================== */

#header {
    width: 100%;
    background: #44a9c4;
}

#supplements {
    height: 45px;
    background: #44a9c4;
    z-index: 1; /* ie7 bug fix */
}

#logobar {
    width: 100%;
    height: 45px;
    background: #3393b5;
    z-index: 1; /* ie7 bug fix */
}

#competency_checklist {
    display: block;
    float: left;
    margin-top: 5px;
    right: 0px;
    height: 31px;
    line-height: 31px;
    padding: 0 10px 0 36px;
    background-image: url(library/images/book-icon-white.png);
    background-position: 5px center;
    background-repeat: no-repeat;
    line-height: 31px;
}

#competency_checklist a{
    font-size: 0.938em;
    text-decoration: underline;
    color: #ffffff;
}

#competency_checklist a:hover{
    text-decoration: none;
}

/* =============================================================================
   Breadcrumb navigation
   ========================================================================== */


#breadcrumbs {
    display: block;
    position: relative;
    height: 39px;
    padding-bottom: 3px;
    background: #ffffff;
    border: 0px solid;
    border-left: #3a90a7 2px solid;
    border-right: #3a90a7 2px solid;
    border-bottom: #3a90a7 2px solid;
    -webkit-border-bottom-left-radius: 5px;
    -webkit-border-bottom-right-radius: 5px;
    -moz-border-radius-bottomleft: 5px;
    -moz-border-radius-bottomright: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    behavior: url("<?php echo get_template_directory_uri();?>/PIE.php");
}

#breadcrumbs ul {
    list-style: none; 
    list-style-image: none; 
    margin: 0;
}

#breadcrumbs #home{
    display: block;
    height: 39px;
    background-image: url(library/images/home_icon.png);
    background-repeat: no-repeat;
    background-position: 19px center;   
    text-indent: -999em;
}

#breadcrumbs ul#parent {
    display: block;
    height: 39px;
    float: right;
    right: 3px;
    position: relative;
    background: #f38630;
    -webkit-box-shadow: inset 0px -2px 0px 0px #cf7229;
    -moz-box-shadow: inset 0px -2px 0px 0px #cf7229;
    box-shadow: inset 0px -2px 0px 0px #cf7229;
    -webkit-border-bottom-left-radius: 5px;
    -webkit-border-bottom-right-radius: 5px;
    -moz-border-radius-bottomleft: 5px;
    -moz-border-radius-bottomright: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

#breadcrumbs ul#parent li {
    position: relative;
    height: 39px;
    float: left;
    min-width: 1px; /* required to fix Opera bug */
    padding: 0 47px 0 15px;
    background-image: url(library/images/breadcrumb_seperator.png);
    background-repeat: no-repeat;
    background-position: right;
    line-height: 39px;
    zoom: 1;
}

#breadcrumbs ul#parent li a {
    display: block;
    height: 42px;
    position: relative;
    font-size: 0.938em;
    font-weight:900;
    color: #ffffff;
    text-decoration: none;
    text-shadow: 0px 2px 0px #cf7229;
}

#breadcrumbs ul li a:visited {
    color: #ffffff;
}
#breadcrumbs ul#parent li:first-child ul {
    left: -5px;
}
#breadcrumbs ul#parent li ul {
    position: absolute;
    z-index: 9998;
    left: -28px;
    top: 42px;
    background: #ffffff;
    border-left: #3a90a7 2px solid;
    border-right: #3a90a7 2px solid;
    border-bottom: #3a90a7 2px solid;
    -webkit-border-bottom-left-radius: 5px;
    -webkit-border-bottom-right-radius: 5px;
    -moz-border-radius-bottomleft: 5px;
    -moz-border-radius-bottomright: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 0 3px 0 3px;
    list-style-position: outside;
    min-width: 200px;
    width: auto;
}

.js #breadcrumbs ul#parent li ul {
    display:none;
}

.no-js #breadcrumbs ul#parent li ul {
    left: -999em;
}

#breadcrumbs ul#parent li ul li {
    float: none;
    display: block;
    position: relative;
    height: 26px;
    margin-bottom: 3px;
    padding: 0 15px;
    background-image: url(library/images/star-icon.png);
    background-position: -25px 50%;
    background-repeat: no-repeat;
    background-color: #738793;
    border-radius: 5px; 
    -moz-border-radius: 5px; 
    -webkit-border-radius: 5px;
    line-height: 26px;
    white-space: nowrap;
    zoom: 1;
}

#breadcrumbs ul#parent li ul li a{
    display: block;
    width: auto;
    color: #ffffff;
    text-decoration: none;
    text-shadow: none;
    font-weight: 100;
}

#breadcrumbs ul#parent li ul li:hover{
    background-color: #3393b5;
}

.no-js #breadcrumbs ul#parent li ul li:hover{
    background-position: 0px 50%;
    text-indent: 10px;
}

.no-js #breadcrumbs ul#parent li:hover ul {
    left: -5px;
}

/* =============================================================================
   Logo bar
   ========================================================================== */

h1#logo {
    display: block;
    position: relative;
    height: 45px;
    background-image: url(library/images/logo.png);
    background-position: left 9px;
    background-repeat: no-repeat;
    text-indent: -999em;
}

Bonus points if you know how to make the menu items take up 100% of the ul‘s width without hardcoding a width onto it.

Thanks for your help.

  • 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-02T06:32:18+00:00Added an answer on June 2, 2026 at 6:32 am

    z-index only work with position relative, absolute & fixed. Write like this:

    #breadcrumbs {
        position:relative;
        z-index: 4;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two problems. One is that it is only pulling one row and
I have two problems. The first one is that I'm using JSP and that
I'm having some problems trying to perform a query. I have two tables, one
Problem: I have two spreadsheets that each serve different purposes but contain one particular
I have encountered a problem in my application. I have two forms, one that
I have two problems that have bugged me for hours. connected/2 is supposed to
I have some localization problems in my webpage. There are basically two problems (that
I have my program that can draw rectangles. I have two problems I can't
I have two problems that I'm not sure are related: I have two DropDownList
I have two problems. problem one: I am trying to create a registeration form

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.