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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:02:24+00:00 2026-05-29T05:02:24+00:00

I have a problem with a vertical css menu with 3-level submenus.The last submenu

  • 0

I have a problem with a vertical css menu with 3-level submenus.The last submenu isn’t aligned as it should be and I don’t know where’s the problem.

Here’s a demo http://jsfiddle.net/pPckk/1/
And if You can’t open jsfiddle, here’s the code:

<div id="global-nav">
        <ul class='parent'>
            <li class="smt"><a href="#">cat1</a></li>

            <li class="c1">
                <ul class='child child1'>
                    <li class="smt"><a href="#">cat1.1</a></li>

                    <li class="smt"><a href="#">cat1.2</a></li>

                    <li class="c1">
                        <ul class='child child2'>
                            <li class="smt"><a href="#">cat1.2.1</a></li>

                            <li class="c1">
                                <ul class='child child3'>
                                    <li class="smt"><a href="#">cat1.2.1.1</a></li>
                                </ul>
                            </li>
                        </ul>
                    </li>

                    <li class="smt"><a href="#">cat1.3</a></li>

                    <li class="smt"><a href="#">cat1.4</a></li>
                </ul>
            </li>

            <li class="smt"><a href="#">cat2</a></li>

            <li class="c1">
                <ul class='child child1'>
                    <li class="smt"><a href="#">cat2.1</a></li>
                </ul>
            </li>
        </ul>
    </div>
#nav, #nav ul {
    line-height: 1.5em;
    list-style-position: outside;
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: relative;
}
#nav a:link, #nav a:active, #nav a:visited {
    background-color: #333333;
    border: 1px solid #333333;
    color: #FFFFFF;
    display: block;
    padding: 0 5px;
    text-decoration: none;
}
#nav a:hover {
    background-color: #FFFFFF;
    color: #333333;
}
#nav li {
    position: relative;
    width: 100px;
}
#nav ul {
    display: none;
    left: 100px;
    position: absolute;
    width: 192px;
    top:0;
}
#nav li ul a {
    float: left;
    width: 192px;
}
#nav ul ul {
    top:0;
}
#nav li ul ul {
    left: 192px;
    top:25px;
    margin: 0 0 0 13px;
}
#nav li:hover ul ul, #nav li:hover ul ul ul, #nav li:hover ul ul ul ul {
    display: none;
}
#nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li li li li:hover ul {
    display: block;
}
  • 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-29T05:02:27+00:00Added an answer on May 29, 2026 at 5:02 am

    Just add

    #nav li ul ul ul {
        left: 192px;
        top:0px;
        margin: 0 0 0 13px;
    }
    

    and you are done…

    Below is what I have and it is working perfect… Yipee!!! I did it first time and worked!!!

    <html>
    <head>
    <style>
    #nav, #nav ul {
        line-height: 1.5em;
        list-style-position: outside;
        list-style-type: none;
        margin: 0;
        padding: 0;
        position: relative;
    }
    
    #nav a:link, #nav a:active, #nav a:visited {
        background-color: #333333;
        border: 1px solid #333333;
        color: #FFFFFF;
        display: block;
        padding: 0 5px;
        text-decoration: none;
    }
    
    #nav a:hover {
        background-color: #FFFFFF;
        color: #333333;
    }
    #nav li {
        position: relative;
        width: 100px;
    }
    
    #nav ul {
        display: none;
        left: 100px;
        position: absolute;
        width: 192px;
        top:0;
    }
    
    #nav li ul a {
        float: left;
        width: 192px;
    }
    
    #nav ul ul {
        top:0;
    }
    
    #nav li ul ul {
        left: 192px;
        top:25px;
        margin: 0 0 0 13px;
    }
    
    #nav li ul ul ul {
        left: 192px;
        top:0px;
        margin: 0 0 0 13px;
    }
    
    
    #nav li:hover ul ul, #nav li:hover ul ul ul, #nav li:hover ul ul ul ul{
        display: none;
    }
    #nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li li li li:hover ul {
        display: block;
    }
    </style>
    </head>
    <body>
    <ul id="nav">
    <li><a href="#">cat1</a><ul class="jaccordion">
    <li><a href="#">cat1.1</a><ul class="jaccordion"></ul></li>
    <li><a href="#">cat1.2</a><ul class="jaccordion">
    <li><a href="#">cat1.2.1</a><ul class="jaccordion">
    <li><a href="#">cat1.2.1.1</a><ul class="jaccordion"></ul></li></ul></li></ul></li>
    <li><a href="#">cat1.3</a><ul class="jaccordion"></ul></li>
    </ul></li>
    <li><a href="#">cat2</a><ul class="jaccordion">
    <li><a href="#">cat2.1</a><ul class="jaccordion"></ul></li></ul></li>
    </ul>
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with my CSS. Here it is: The CSS for Div
i have a problem with html and css. i have a html file with
I have a vertical nav menu that is made up of nested lists, however
I have problem with CSS <buttons> in Google Chrome, it shows space between <buttons>
I have a problem with css and FF3 / IE7 and Opera 10. I
This is my menu and I have a problem with ie6, infact this is
Here's my problem: I have a group of divs which have varying amounts of
I have this HTML and CSS http://jsbin.com/uciya5/3/edit where the problem is that the radio
I have a css problem with jquery / jquery ui / auto complete <script
I have a vertical ul as a nav menu. When a:hover is triggered, a

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.