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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:00:31+00:00 2026-05-26T19:00:31+00:00

i was able to make the dropdown menu already but when i tried to

  • 0

i was able to make the dropdown menu already but when i tried to view it on other pc the secondlevel ul was misplaced and not below on it’s li. So i tried to recode but i got lost. Please help.

Here is my html markup:

<div id="main-nav" class="menufont">
    <ul id="nav">
        <li><a href="index.html">ONE</a></li>
        <li class="sec">TWO
            <ul id="twosecond" class="leveltwo">
                <li>TWO A</li>
                <li>TWO B</li>
            </ul>
        </li>
        <li class="sec1">THREE
            <ul id="threesecond" class="leveltwo">
                <li>THREE A</li>
                <li>THREE B</li>
                <li>THREE C</li>
                <li>THREE D</li>
            </ul>
        </li>
        <li>FOUR</li>
        <li>FIVE</li>
    </ul>
</div>

And here is my messed up css:

ul.leveltwo {
    background: #c7000d;
    border: 1px solid black;
    padding: 7px;
    font: 16px Helvetica, Arial;
}

ul.leveltwo li {
    color: #fff;
}

#twosecond li, #threesecond li {
    font: 16px Arial;
    display:block;
    padding: 3px;
    border-bottom: 1px dashed #fff;
}

#twosecond, #threesecond {
    display: none;
    position: absolute;
}

#nav li.sec:hover ul, #nav li.sec1:hover ul {
    display: block;
}

The ul with class .leveltwo shows when i hover on it’s main li but the ul of “TWO” is not aligned with it. Thanks alot in advance.

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

    Just add display:none to your .leveltwo class and take out the #twosecond #threesecond tags. The `position:absolute is making the sub menus look like they’re showing up under THREE.

    Example: http://jsfiddle.net/r4gAQ/3/

    Though I will say, I’d look into a jQuery solution, maybe a premade one like MLDDM. They have nice solutions that allow for vertical and horizontal menus. Also, hovering using pure CSS breaks in IE6… not that anyone should use that anymore.

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

Sidebar

Related Questions

I am not able to make the nested elements sortable in jQuery UI. I
I am not able to make a clear decision on this one. I am
I am not able to make this out: Between eliminates use of >= and
I'm not being able to make this line work with Tk import os while(1):
I want to be able to make a line graph using GTK+ but I'm
I'm using the Pure CSS menu from here: http://csswizardry.com/2011/02/creating-a-pure-css-dropdown-menu/ It works fine, but I
I'm trying to make a dropdown menu on my website. I want to be
I need to make a dropdown menu for a website i'm working on and
I have been able to make my photos large for single photo posts on
I need to be able to make a program that looks through a mailbox

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.