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

  • SEARCH
  • Home
  • 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 999859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:25:07+00:00 2026-05-16T07:25:07+00:00

So im having a little issue getting my menu with a slidedown function work

  • 0

So im having a little issue getting my menu with a slidedown function work together with my other existing menu (normal links).

My existing menu(with normal links) is like this, simple UL with LI links.

<ul class="menu">
      <li><a href="home.php">HOME</a></li>
      <li><a href="#">HOME</a></li>
      <li><a href="#">HOME</a></li>
      <li><a href="#">HOME</a></li>
      <li><a href="#">HOME</a></li>
</ul>

And my slidedown menu looks like this:

    <img src="images/button.png" width="126" height="23" class="menu_class">
<ul class="the_menu">
<li><a href="#">menulink</a></li>
<li><a href="#">menulink</a></li>
<li><a href="#">menulink</a></li>
<li><a href="#">menulink</a></li>
<li><a href="#">menulink</a></li>
<li><a href="#">menulink</a></li>
</ul>

I want the ul with the slidedown menu NEXT to the other ul with normal links..

Right now what it does, it <br> for each ul so the menubutton with the slidedown is under the menu, but i want it next to.

.menu_class {
    border:1px solid #1c1c1c;
}

.the_menu {
    position:absolute; 
    display:none;
    width:150px;
    border: 1px solid #1c1c1c;
}

.the_menu li {
    background-color: #283d44;
}

.the_menu li a {
font-size: 12px;
    color:#FFFFFF; 
    text-decoration:none; 
    padding:10px; 
    display:block;
}

.the_menu li a:hover {
    padding:10px;
    font-weight:bold;
    color: #fffc30;
}

/* MENU 2*/

.menu li {
    float: left;
    font-size: 12px;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}
.menu a {
    color: #94938e;
    display: block;
    float: left;
    margin: 0;
    padding: 10px;
    text-decoration: none;
    font-weight: bold;
}
  • 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-16T07:25:07+00:00Added an answer on May 16, 2026 at 7:25 am

    Without seeing something, my first suggestion would be to float the ULs rather than positioning them absolutely.

    At the same time, I’d suggest not having a different UL altogether for a menu option with a submenu. There are cleaner ways to do it with a single top-level UL and separate ULs for only the submenus. In these cases you nest the submenu ULs inside the LI elements for the main UL. Here’s one resource, but there are many others. That link should give you enough to get started, though.

    Josh

    EDITED: More detail / example

    Fundamentally, your UL structure will be as follows:

    <div id="menu">
        <ul>
            <li><a href="/">Home</a></li>
            <li>
                <a class="drop" href="/Products/Index">Products</a>
                <ul class="submenu">
                    <li><a href="/Products/1">Meat cleavers</a></li>
                    <li><a href="/Products/2">Hockey masks</a></li>
                    <li><a href="/Products/3">Chainsaws</a></li>
                </ul>
            </li>
        </ul>
    </div>
    

    The magic happens in the CSS. I’m having to simplify it greatly, because my implementation includes special hover effects, styling for non-link group header LI items in the drop-menu, and color classes for the individual menu items. The basic idea is that you structure the UL to lay out the way you want it, then style the anchor tags to give the appearance you want.

    Below is my exact CSS (which, by the way, borrows generously from Zendesk’s menu structure). I removed the noise related to some of my special styling, but if I inadvertently took something out that breaks it let me know and I’ll post the whole thing.

    #menu { height: 30px; }
    
    #menu ul { 
        list-style: none; 
        float: left;
        margin: 0; 
        padding: 0;
    }
    
    #menu ul a { 
        text-decoration: none;
        font-size: 12px; 
    }
    
    #menu ul li { 
        float: left; 
        position: relative; 
        padding: 8px 0; 
    }
    #menu li:hover { background: transparent url(/content/images/sprite.png) repeat-x 0px -128px; }
    #menu a.drop { 
        padding: 8px 15px 7px 15px; 
        color: White;
    }
    
    #menu ul li img { 
        vertical-align: top; 
        padding-right: 5px; 
        border: 0; 
    }
    
    #menu li:hover > ul, #menu li.over ul { display: block; }
    
    /* Drop-down menus */
    ul.submenu li:hover > ul { display: block; }
    ul.submenu li { width: 200px; left:0pt; height:auto;}
    ul.submenu { 
        display: none;  
        left: -2px; 
        margin: 5px 0 0 0; 
        background:#FFFFFF none repeat scroll 0% !important;
        border-style:none solid solid;
        border-width:0pt 2px 2px;
        border-color: #4F81BD;
        padding:8px !important;
        position: absolute;
        text-align:left;
        top:30px;
        width: 200px;
        z-index:15000;
        min-height:28px;
        padding-left:8px;
        float:left;
    }
    
    ul.submenu li a {
    color:#505050 !important;
    border-top:1px solid #DDDDDD;
    display:block;
    float:none;
    padding:3px 5px;
    }
    
    #menu li ul li {padding: 0; }
    
    ul.submenu li a:hover {
    background:#E6F3FC none repeat scroll 0% !important;
    color:#000000;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 488k
  • Answers 488k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Unfortunately, the styling of option elements is supported to different… May 16, 2026 at 8:44 am
  • Editorial Team
    Editorial Team added an answer If you just need text or HTML, change the dataType:… May 16, 2026 at 8:44 am
  • Editorial Team
    Editorial Team added an answer There is absolutely no difference, although the second one I… May 16, 2026 at 8:44 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Originally, I was having some issues getting this code to function, but after a
I'm new to Watir and I've having a little trouble getting logged in in
Having an issue with random individuals trying to access an intranet site with a
I'm having an issue with Movieclips inside my Swf resizing to the wrong dimensions.
I am having in issue with IE passing a string back into an swf
I'm just getting started using ADO.NET and DataSets and DataTables. One problem I'm having
I am using Fluent NHibernate and having some issues getting a many to many
Having read an existing post on stackoverflow and done some reading around on the
So I'm having pretty much exactly the problem described here: http://code.google.com/p/android/issues/detail?id=6191 and until the
Im having a very strange problem, i have a complicated view that returns incorrect

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.