Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Menu Z-Index Problem

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #40262
    lucaswynne
    Member

    When you hover over one of my menu items with a large sub-menu it gets cut off by my footer element. i.e. Hover over categories here: [http://themeforward.com/demo2/?page_id=1846](http://themeforward.com/demo2/?page_id=1846http://themeforward.com/demo2/?page_id=1846”)

    I’m assuming my CSS for my entire menu and CSS for my footer are the culprits, but I can’t be sure. I’d appreciate any help! Below is the CSS for my menu’s main content and footer.

    .sf-menu, .sf-menu * {
    margin: 0;
    padding: 0;
    list-style: none;
    z-index: 500!important
    }

    .footer_outside {
    clear:both;
    border-top:1px solid #DDD;
    display:block;
    z-index:0!important
    }

    #111744
    Paulie_D
    Member

    Do you really need all those items in the ‘long’ menu?

    Is your ‘portfolio’ section really going to be only that tall. Try making it say 500px.

    I think you might be trying to solve a problem that isn’t going to exist in the real world.

    Other than that, I think z-index only works on positioned elements. Try adding ”position:relative’ to your menu.

    #111745
    lucaswynne
    Member

    That didn’t work. I’m building a theme and while I agree with your point,I know somebody with absolutely no design experience will purchase the theme and have a problem.

    #111748
    michaelwhyte
    Participant

    Did you make sure to set position relative (or absolute) on the element…I believe z-index only works on elements with a position property value of relative or absolute…

    #111749
    michaelwhyte
    Participant

    I just tried setting your position relative…but it seems to push your footer down instead of going over top of it…

    #111754
    lucaswynne
    Member

    Thanks for the attempt Michael, I tried that and ran into the same problem. I’m tinkering with it still and am having difficulty figuring out what the problem is.

    #111757
    wolfcry911
    Participant

    its the overflow: hidden on #wrap

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘CSS’ is closed to new topics and replies.