SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: Z-index issue

  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2011
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Z-index issue

    Having a issue with the z-index on this page:
    http://031863e.netsolhost.com/adept/whitepapers.php

    When clicking download on the whitepaper the twitter bootstrap module pops up but is hidden behind a portion of the Main Nav Menu.

    The menu is set to a z-index of 20, and the module at 1050;


    Thanks
    Ryan.

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,299
    Mentioned
    460 Post(s)
    Tagged
    8 Thread(s)
    Hm, that link is not working. Is the site up? z-index issues are usually pretty simple to fix.

    Edit: OK, it's working now. (Took a few tries.)

    Try bumping up the z-index on the section (around line 53 of the CSS):

    Code:
    section {
    position: relative;
    z-index: 100;
    background: url(../images/content.gif) left top repeat-x #FDFDFD;
    border-bottom: 1px solid #E8E7E6;
    padding: 35px 0;
    }

  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2011
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you - That worked perfectly.

  4. #4
    SitePoint Enthusiast
    Join Date
    Mar 2011
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am now noticing that after that z-index change, the drop down menu over "Services" is no longer working. Any other ideas?

  5. #5
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,197
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Your going to have a lot of issues by directing setting a z-index value on every <section> element in your markup, what you should instead be doing is targeting ONLY the elements you need to sit higher in the DOM as that will eliminate the current issues you're having.

  6. #6
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,299
    Mentioned
    460 Post(s)
    Tagged
    8 Thread(s)
    Yes, I guess I should have said

    Code:
    section#content {
      z-index: 100;
    }
    But that still causes the same problem. An alternative would be to move the menu into the #content section, but that's a bit of a pain.


Tags for this Thread

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
  •