SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: z-index?

  1. #1
    SitePoint Wizard lukeurtnowski's Avatar
    Join Date
    Mar 2003
    Location
    Coronado
    Posts
    1,644
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    z-index?

    I'm trying to figureout in the slideshow,
    http://fixmysite.us/coronadoshores/
    why does the slides seem to overlay the sub-menu (when the mouse is mover over recreation services for instance). I set the z-index of the sub-menu to 9999 sso shouldn't it always be on top?
    "Oh, and Jenkins--apparently your mother died this morning."

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,177
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    Quote Originally Posted by lukeurtnowski View Post
    I set the z-index of the sub-menu to 9999
    I don't see that anywhere. Try this:

    Code:
    #menu {
      z-index: 9999;
    }

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,355
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Quote Originally Posted by lukeurtnowski View Post
    I'm trying to figureout in the slideshow,
    http://fixmysite.us/coronadoshores/
    why does the slides seem to overlay the sub-menu (when the mouse is mover over recreation services for instance). I set the z-index of the sub-menu to 9999 sso shouldn't it always be on top?
    You can set the sub menu to have a z-index of 999999999999999999999999999999999999 but if the menu's parent is z-index:1 then it will never overlap an element outside that context that has a z-index of 2. You need to address the parent as Ralph has suggested and it will work. Ultimately its the positioned parent that dictates the stacking level (where z-index has been set).

  4. #4
    SitePoint Wizard lukeurtnowski's Avatar
    Join Date
    Mar 2003
    Location
    Coronado
    Posts
    1,644
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    ooohhh, thanks
    "Oh, and Jenkins--apparently your mother died this morning."


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
  •