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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:08:56+00:00 2026-05-28T13:08:56+00:00

I am trying to do a dropdown menubar in my application. I want to

  • 0

I am trying to do a dropdown menubar in my application. I want to have my menu bar look like

 __________________
|                  |
|__________________|
     |_____________|
     |_____________|
     |_____________|

but after i styled my html, it turns out

__________________
|    ______________|
|___|______________|
    |______________|
    |______________|

The submenu is inside my main menu button.

My html is as follow

<nav>

        <ul id='menu'>
            <li id=browser ><a href=#>test</a>
                <ul>
                    <li><?= anchor('#','1');?></li>
                    <li><?= anchor('#','2');?></li>
                    <li><?= anchor('#','3');?></li>
                </ul>
            </li>

            <li id=user_management><a href=#></a></li>
            <li id=log_out><a href=#> </a></li>
        </ul>

    </nav>

and my css

nav > ul{
        list-style:none;
        width: 816px;
        margin: 0 auto;
    }

    nav > ul #browser{      my main menu button
            border:2px solid red; 
            width:270px;
            height:32px;
            display:block;
            float:left;
            margin-right:2px;
            background-image:url('../images/browser_BT.jpg');
    }

    #browser li{       //my submenu
    border:2px solid red;
    list-style:none;
    text-align:left;
    display:block;

    }

It seems that my submenu ignore the block element of my my main menu button. Any help? Thanks a million.

  • 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-28T13:08:56+00:00Added an answer on May 28, 2026 at 1:08 pm

    Position your submenu absolutely, like so:

    #browser ul {       //my submenu
        position:absolute;
        top:100%;
        left:0;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to make a dropdown menu with pure html and css, but
i'm trying to built a dropdown menu for a silverlight web application. it should
I'm trying to use Twitter Bootstrap's dropdown menu in its top nav bar. You
I'm trying to make a simple menu bar only application on xcode 4. Everything
Trying to use Twitter Bootstrap's (2.0) Dropdown menu. But somewhy it adds additional empty
I'm trying to build a jquery dropdown menu, basically I have the left navigation
I am trying to make my menu bar partially hide after a timeout of
So I'm trying to adapt this Dropdown menu on Joomla the styles work great
I'm trying to implement a horizontal dropdown menu into my website and I've run
I am trying to create dropdown menu for Wordpress theme and having some silly

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.