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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:35:46+00:00 2026-05-27T00:35:46+00:00

I am making a horizontal menu that is three levels deep. It works as

  • 0

I am making a horizontal menu that is three levels deep. It works as intended for the first and second levels. However, when you hover over any of the first or second level menus, the third menu items are displayed.

Even more so, all third level menu items that are within the first level menu are displayed (all of the second level submenus). I have no idea how to correct this (I do, but I can’t figure out the combination of ul li…etc).

*I realize my CSS and html is sloppy (black ftw) – that is going to get fixed later. My main concern now is to get it working correctly.

#menu ul { 
    margin: 0; 
    padding: 0; 
    position:relative;
    list-style: none;
    width: 150px; /* Width of Menu Items */ 
    border-bottom-style:solid;
    border-width:2.3px;
    border-color:black;
    padding-left:0px;
    /*background:url(./images/fillers/vvv.png);*/
} 

#menu ul li { 
    /* position: relative; */
} 

#menu li ul { 
    position: absolute; 
    left: 149px; /*Set 1px less than menu width */ 
    top: 0; 
    display: block; 
} 

#menu li:hover ul {
    display: block; 
} 

#menu li:hover ul { 
    visibility:visible; 
} 


#menu ul ul {
    visibility:hidden; 
} 


/* Fix IE. Hide from IE Mac \*/ 
* html #menu ul li { float: left; height: 1%; } 
* html #menu ul li a { height: 1%; } 
/* End */ 

/* Make-up syles */ 

#menu ul, li { 
    margin: 0 0 0 0; 
} 

/* Styles for Menu Items */ 
#menu ul a { 
    display: block; 
    text-decoration: none; 
    color: white;  
    padding: 4px; 
    border: 2.3px solid black; 
    border-bottom: 0;
} 

/* Hover Styles */ 
#menu ul li:hover, #menu ul li a:focus { 
    background-color:#5a5a5a;
    color:white;
    background:url(./images/fillers/vvv.png);
} 

/* Sub Menu Styles */ 
#menu li ul a { 
    text-decoration: none; 
    color: white; 
    text-align:center;
    padding: 4px; 
    border: 2.3px solid black; 
    border-bottom: 0;
} 

/* Sub Menu Hover Styles */ 
#menu li ul a:hover { 
    color: white;   
} 

#menu li ul a.noLink:hover, #menu li ul a.noLink, #menu .noLink, #menu li ul .noLink, #menu li a.noLink { 
    color: grey;    
} 
/* Icon Styles */ 
#menu ul a.submenu {background: url("r_arrow.gif") no-repeat right; } 
#menu ul a.submenu:hover {background: url("r_arrow.gif") no-repeat right;}




<div id=menu>
                                        <ul id=menuList>
                                            <li>
                                            <a href="#" name="submenu" class="submenu">Tournaments</a>
                                                <ul>
                                                    <li>
                                                    <a href="#" name="submenu" class="submenu">2011</a>

                                                            <ul>
                                                                <li><a href="#"> 1, 2, 3</a></li>
                                                                <li><a href="#"> 4, 5, 6</a></li>
                                                                <li><a href="#"> 7, 8, 9</a></li>
                                                                <li><a href="#"> 10</a></li>
                                                            </ul>

                                                    </li> 

                                                    <li>
                                                    <a href="#" name="submenu" class="submenu">2012</a>
                                                        <ul>
                                                            <li><a href="#">Season 1</a></li>
                                                        </ul>
                                                    </li>

                                                    <li><a class="noLink">2013</a></li>
                                                    <li><a class="noLink">2014</a></li> 


                                                </ul>
                                            </li> 
                                            <li><a href="#" name="submenu" class="submenu">---</a>
                                                <ul>
                                                    <li>
                                                    <a href="#" name="submenu" class="submenu">2011</a>
                                                            <ul>
                                                                <li><a href="#">1, 2,  3</a></li>
                                                            </ul>
                                                    </li> 
                                                    <li><a class="noLink">2012</a></li>
                                                    <li><a class="noLink">2013</a></li>
                                                    <li><a class="noLink">2014</a></li> 
                                                </ul>
                                            </li> 
                                            <li><a class="noLink" name="submenu" class="submenu">Leagues</a>
                                                <ul>
                                                    <li><a class="noLink">2011</a></li> 
                                                    <li><a class="noLink">2012</a></li>
                                                    <li><a class="noLink">2013</a></li>
                                                    <li><a class="noLink">2014</a></li> 
                                                </ul>
                                            </li> 
                                            <li><a class="noLink" name="submenu" class="submenu">---</a>
                                                <ul>
                                                    <li>
                                                    <a class="noLink" name="submenu" class="submenu">2011</a>
                                                            <ul>
                                                                <li><a class="noLink">---</a></li>
                                                            </ul>
                                                    </li> 
                                                    <li><a class="noLink">2012</a></li>
                                                    <li><a class="noLink">2013</a></li>
                                                    <li><a class="noLink">2014</a></li> 
                                                </ul>
                                            </li> 

                                        </ul>
                                    </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-27T00:35:47+00:00Added an answer on May 27, 2026 at 12:35 am

    I figured this solution out:

    #menu li:hover ul ul, #menu li:hover ul ul ul, #menu li:hover ul ul ul ul{
    display:none;
    }
    
    #menu li:hover ul, #menu li li:hover ul, #menu li li li:hover ul, #menu li li li li:hover     ul{
    display:block;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a ul-based horizontal navbar, but I want to have two levels heading
I am making one simple horizontal menu with CSS and simple unordered list. The
Making my first steps with NHibernate, I'm trying to have it creating my Tables
Making an adobe flex ui in which data that is calculated must use proprietary
Making my first steps in RIA Services (VS2010Beta2) and i encountered this problem: created
Making UML sequence diagram in VS 2010RC I've observed that there is no activation
I'm creating a horizontal site (it could also be any other auto-scrolling site, like
Please, look at this example . I intend making horizontal layout with pure html/css,
I'm doing a Facebook-Like chat. The problem is that the text is making a
I've been making a picture mirroring in horizontal and vertical axes. Now I'm going

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.