SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: Z-index issue

  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2011
    Posts
    71
    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
    SitePoint Award Recipient ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, Australia
    Posts
    19,959
    Mentioned
    216 Post(s)
    Tagged
    2 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
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you - That worked perfectly.

  4. #4
    SitePoint Enthusiast
    Join Date
    Mar 2011
    Posts
    71
    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 Mentor bronze trophy
    chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,041
    Mentioned
    9 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.
    Blog/Portfolio | Evolution Xtreme | DFG Design | DFG Hosting | CSS-Tricks | Stack Overflow | Paul Irish
    Having lame problems with your code? Let us help by using a jsFiddle

  6. #6
    It's all Geek to me silver trophybronze trophy
    SitePoint Award Recipient ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, Australia
    Posts
    19,959
    Mentioned
    216 Post(s)
    Tagged
    2 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
  •