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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T12:00:44+00:00 2026-05-31T12:00:44+00:00

I put together a fiddle with a very basic hover example. http://jsfiddle.net/qhj2P/ Here is

  • 0

I put together a fiddle with a very basic hover example.

http://jsfiddle.net/qhj2P/

Here is the CSS:

.button
{
    width: 50px;
    height: 15px;
    background-color: #090;
    padding: 5px;
}

.menu
{
    height: 200px;
    width: 50px;
    background-color: #900;
    display: none;    
}

I’m curious what the best way to position the menus is. How do I make it so that the first menu drops down right below the first button and the second menu drops down right below the second button? I’m not so good at CSS positioning and the like.

  • 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-31T12:00:46+00:00Added an answer on May 31, 2026 at 12:00 pm

    The best way would be to use <ul> instead of your current setup.
    http://jsfiddle.net/elclanrs/fHmvs/1/

    <ul class="menu">
        <li>
            <a href="#">One</a>
            <ul>
                <li><a href="#">One</a></li>
                <li><a href="#">Two</a></li>
            </ul>
        </li>
        <li>
            <a href="#">Two</a>
            <ul>
                <li><a href="#">One</a></li>
                <li><a href="#">Two</a></li>
            </ul>
        </li>
    </ul>
    

    css:

    .menu li {
        float: left;
        position: relative;
    }
    .menu ul {
        position: absolute;
        display: none;
        background: red;
    }
    .menu ul li { clear: both; }
    .menu a {
        display: block;
        padding: .5em;
        margin: .1em;
    }
    

    jq:

    $('.menu li').hover(function() {
        $(this).children('ul').stop(1, 1).slideToggle();
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's a link to the to my fiddle with the example: http://jsfiddle.net/stavros917/AaQpZ/ So I
I have put together a small example here just to replicate the problem. I
As I put together each asp.net page It's clear that most of the time
I'm attempting to put together some basic report screens. I've got some fairly complicated
I have put together a script which is very much like the flickr photostream
I have the following code: http://jsfiddle.net/fCWJ5/1/ , and following doubts regarding the viewbox. body{margin:0;}
I've put together some key frame animations in CSS which animate a div from
I'm trying to put together a plugins system with .NET, and I'm not sure
I have put together an example page detailing my problem My website is going
I've put together my very first package with PackageMaker (for a system service), but

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.