Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1065699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T19:52:10+00:00 2026-05-16T19:52:10+00:00

Is there any replacement for z-index? My code is too long, thus I will

  • 0

Is there any replacement for z-index?

My code is too long, thus I will briefly explain my code in text form:

My website layout is (from top to bottom):

  • Banner
  • Menu Bar
  • Content
  • Footer

In 1 of the menus, I added a SlideDown (using jquery) effect when rollover to display to submenus.

I have 5 images, right below the menu bar, => <div id='images'>. Each image under <li class="thumb">

My problem: When I roll over the menu, the submenus are behind the images. I tried all methods, debug with firebu, tested on all popular browsers, IE,FF,Chrome,Opera and Safari, none of them works. I set z-index and position: relative / absolute, but no luck.

Is there any others way to display my submenus in front of the images?

Please help

EDIT:

Hi Guys,

I fixed the problem. But its weird, and I dont understand why.

the initial css of submenu:

#submenu{
  ...
  z-index: 500;
  position: relative;
  ...
}

After I change the z-index value to 1000, it works now. I dont understand why though. The z-index for the image is -100, before and after I fixed the problems. Is there any specific reason why the value 500 does not work, while 1000 can work? I didnt use z-index on others elements(rest of the page). (Maybe I should open a new question for this). Anyway, sorry for posting this useless question here, any kind-heart soul, could you please close this thread/question?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T19:52:13+00:00Added an answer on May 16, 2026 at 7:52 pm

    It’s hard to tell how you’ve laid out your page but here’s a suggestion.

    Try the following:

    <div id="banner"><!--banner contents--></div>
    <div id="menu"><!--menu contents--></div>
    <div id="content"><!--main contents--></div>
    <div id="footer"><!--footer contents--></div>
    

    Then in css you want:

    div#menu {
        position: relative;
        z-index: 10;
    }
    

    I don’t like to use this many div’s when making a website, but its the easiest way of getting my message across. Let me know how it goes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any replacement for saxon:if and saxon:before functions in XSLT 2.0 / XPath
I have a project with a huge amount of auto-generated code, which we build
If you've ever used SharePoint Designer, you'll know it's bad. Really bad. Is there
I have a method to replace every character except those I specify. For example,
I have a requirement to export a dataset as a CSV file. I have
the least thing i like on the nexus one is the useless app it
ParamText() is an really old way of replacing parameters in a string that is
I'm new to silverlight and trying to read a silverlight tutorial that uses HitTest
I've run into an issue porting a codebase from linux (gcc) to windows (msvc).
I was trying to replicate what Rick is doing here for OpenID implementation: http://www.west-wind.com/weblog/posts/899303.aspx

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.