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 6662079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:21:06+00:00 2026-05-26T02:21:06+00:00

I am working on a simple css drop down menu, when I hover the

  • 0

I am working on a simple css drop down menu, when I hover the list, the drop down displays, but when my mouse move beyond the “#head” wrapper div the list closes.

the head div is wraps the menu and my logo and a search bar.
The content div wraps all my contents.

When there is content below the “head” div, say another “content” div, then the drop down list displays until i move the cursor beyond the “head” div

div#content{
    display:block;
    width:972;
    float:none;
    position:relative;
}
#top_menu{
    float:right;
    text-align: left;
    width: 505px;
    padding: 5px 0 0 0;
    display: inline-block;
}

#top_menu ul{
    list-style-type:none;
    float:right;
}
#top_menu ul li ul{
    display:none;
}
#top_menu ul li{
    float: left;
    padding: 0 0 0 14px;
    margin: 0;
    width: auto;
}
#top_menu ul li:hover ul{
    display:block;
    position:absolute;
}
#top_menu ul li:hover ul li{
    clear: left; 
}
#top_menu a{
    display:block;
}



    <div id="head">
        <div id = "top_menu">
            <ul class="nav">
                <li><a href="index.php">Home</a></li>
                <li><a href="about.php">About</a>
                    <ul>
                        <li><a href="1.php">1</a></li>
                        <li><a href="2.php">2</a></li>
                        <li><a href="3.php">3</a></li>
                        <li><a href="4.php">4</a></li>
                        <li><a href="5.php">5</a></li>
                        <li><a href="6.php">6</a></li>
                    </ul>
                </li>
            </ul>

        </div>
        <div class="clear"></div>
        <div class="search">
            <form action="search.php" method="post">
                <input type="text" maxlength="30" width="40" />
                <input type="submit" value="submit" />
            </form>
            </div>
    </div>
  • 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-26T02:21:07+00:00Added an answer on May 26, 2026 at 2:21 am

    ok… i fixed it by adding a z-index, turns out the content div, which is attached below the head div, is covering up the drop down box. so in the css, i just added: z-index:1000, then it worked. thanks all.

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

Sidebar

Related Questions

I have a working simple jquery drop-down menu . But problem is how can
I'm working on a site currently which has a simple css nav menu with
Here is whats happening (Code Block Below): I am working on a simple drop-down
Stack, I'm having difficulty creating a good drop down navigation menu using only css.
Working on a rather small, and simple layout, I decided to use Meyer's CSS
I have a simple CSS help popup that's been working well for me in
Have been using a simple CSS only tooltip. Working Example css: .tip { position:relative;
I'm working on a pretty simple CSS experiment on jsfiddle and I can't seem
Java Q: I like CSS for simple web pages but loathe it when it
I have a simple website(primarily static html/css) but for some reason some of the

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.