SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Did I Place The Z-Index Property On The Right Selector?

  1. #1
    SitePoint Guru Todd Temple's Avatar
    Join Date
    Mar 2005
    Location
    Tennessee
    Posts
    773
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Did I Place The Z-Index Property On The Right Selector?

    I have added a drop down menu to the button "Our Services" located on the main menu (ul#nav) and I am showing the drop down displayed on top of the slideshow area, but the client has claimed that the drop down is displayed behind the slideshow images. I have a z-index of 99 added to the selector #nav li li a. Is there something I am missing? Can anyone help me ensure that the drop down menu will be displayed on top of the slideshow area?

    Here is a link to review the page in question. And thanks in advance to anyone that helps!

    LINK-
    http://www.tocdocs.com/index.062512.html
    Todd Temple > T2 Design

  2. #2
    It's all Geek to me silver trophybronze trophy
    SitePoint Award Recipient ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, Australia
    Posts
    20,012
    Mentioned
    217 Post(s)
    Tagged
    3 Thread(s)
    Sounds like the client is using IE7 or under. Add the z-index to #header itself. That should fix it.

    E.g.

    Code:
    #header {
      z-index: 99;
    }

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    SitePoint Award Recipient Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    37,800
    Mentioned
    99 Post(s)
    Tagged
    3 Thread(s)
    Hi

    The menu goes underneath in IE7 and you need to set the z-index on the main parent of the nav.

    e.g.
    Code:
    #header{
    position:relative;
    z-index:999;
    }
    Positioned elements in IE get a default z-index of zero and not auto as they should and thus confine the children to zero.

    Edit:


    Ralph types faster than me

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •