WordPress.org

Ready to get started?Download WordPress

Forums

z-index problem (5 posts)

  1. ciarangaffey
    Member
    Posted 3 years ago #

    Hi,

    I've got a dropdown menu positioned right above a rotating image banner. They all work fine except that when the menu drops down it's behind the rotating banner. I've tried changing the z-index of the dropdown menu but to no avail. I can change the z-index of the banner but I can only put it behind everything including the wrapper which has a semi transparent black fill. Is there any way I can fix this? Why cant i change the z-index of the dropdown menu?

    Help here would be greatly appreciated. Here's the site: http://www.ciarangaffey.com/blog

    Thanks a lot.

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    you need to have 'position: relative;' on the css id or class, to get 'z-index' to work:

    for instance:

    #suckerfishnav { position:relative; z-index:20; }

  3. ciarangaffey
    Member
    Posted 3 years ago #

    Hey it worked. Thanks a lot.

    I guess i need to brush up on my css.

  4. somethingelse
    Member
    Posted 3 years ago #

    AWESOME... thank you. i've searching for this simple fix for over an hour.

  5. inspirio
    Member
    Posted 3 years ago #

    Thank you, verrrrrrrrrrryyyyyyyyy much. You rock, man... :)
    Work more than perfect. :)))))))))

Topic Closed

This topic has been closed to new replies.

About this Topic