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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:44:08+00:00 2026-06-14T00:44:08+00:00

I have css menu which is of two level mean One main and other

  • 0

I have css menu which is of two level mean One main and other is its subsequest .for example

Home--Link1
      Link2
      Link3
      Link4

But Now I have need to extend this menu to more subsequent link like this

Home--Link1--SLink1
      Link2  SLInk2
      Link3  SLink3
      Link4--Slink1
             Slink2

But I am unable to unserstAND HOW TO CONVERT THE MENU TO MUltilevel please any one help me to do this
Here is My Css Code

#sddmSFPL
{   margin: 0;
    padding: 0;
    z-index: 30}

#sddmSFPL li
{   margin: 0;
    padding: 0;
    list-style: none;

    font: 11px Tahoma}

#sddmSFPL li a
{   display: block;
    margin: 0 1px 0 0;
    padding: 4px 10px;
    width: 100px;
    background: #FFFFFF;
    color: #222222;
    text-align: Left;

    text-decoration:none}

#sddmSFPL li a:hover
{   background: #EEEEEE;
    color:#222222;
    border:solid 1px #EEEEEE; 
    padding:3px 9px; 
    border-left-color:#DD4b39;    
    }


#sddmSFPL div
{   position: absolute;
    visibility: hidden;
    margin:-24px 120px;
    padding:4px 10px;         
    background: #FFFFFF;    
    border: 1px solid #EEEEEE}

    #sddmSFPL div a
    {   position: relative;
        display: block;
        margin: 0 0 0 0;
        padding: 4px 10px;       
        width: auto;
        white-space:normal;
        text-align: left;
        text-decoration: none;
        background: #FFFFFF;
        color: #222222;
        font: 11px Tahoma}

    #sddmSFPL div a:hover
    {   background: #EEEEEE;
        color:  #222222;
        padding:3px 9px; }

And here are the link in menu which i am want to convert into multilevel

 <ul id="sddmSFPL">    
    <li>
    <a href="#" id="MilkReports" runat=server >Milk Reports</a>
        <div id="m29"  onmouseover="mcancelclosetime()"  onmouseout="mclosetime()">
        <a href="http://sml.com.pk/sfpl/milk.php" target=_blank >Milk Receipt Dashboard</a>
        <a href="http://foods.shakarganj.com.pk/pdf/procurement_structure.pdf" target=_blank> Milk Procurement Structure</a>        
    </div>
    </li>
</ul>

And here is my JS code to open and close the menues

<!--
var timeout         = 2000;
var closetimer      = 0;
var ddmenuitem      = 0;

// open hidden layer
function mopen(id)
{   


//  onmouseover="timer1=setTimeout(function(){show('tip1');}, 500);"
//onmouseout="clearTimeout(timer1);"



    // cancel close timer
    mcancelclosetime();

    // close old layer
    if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';

    // get new layer and show it
    ddmenuitem = document.getElementById(id);
    ddmenuitem.style.visibility = 'visible';

}
// close showed layer
function mclose()
{
    if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}

// go close timer
function mclosetime()
{
    closetimer = window.setTimeout(mclose, timeout);
}

// cancel close timer
function mcancelclosetime()
{
    if(closetimer)
    {
        window.clearTimeout(closetimer);
        closetimer = null;
    }
}

// close layer when click-out
//document.onmouseover = mclose; 
// -->
  • 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-06-14T00:44:09+00:00Added an answer on June 14, 2026 at 12:44 am

    LIVE DEMO

    Here I give you a pure css multilevel css menu.

    HTML:

    <div id="navigation">
        <ul class="top-level">
            <li><a href="#">Home</a>
                <ul class="sub-level">
                    <li><a href="#">Sub Menu Item 1</a>
                    </li>
                    <li><a href="#">Sub Menu Item 2</a>
                        <ul class="sub-level">
                            <li><a href="#">Sub Sub Menu Item 1</a></li>
                            <li><a href="#">Sub Sub Menu Item 2</a></li>
                            <li><a href="#">Sub Sub Menu Item 3</a></li>
                            <li><a href="#">Sub Sub Menu Item 4</a></li>
                        </ul>
                    </li>
                    <li><a href="#">Sub Menu Item 3</a></li>
                    <li><a href="#">Sub Menu Item 3</a></li>
                </ul>
            </li>
            <li><a href="#">About</a></li>
            <li><a href="#">Contact</a></li>
            <li>
                <a href="#">FAQ</a>
                <ul class="sub-level">
                    <li><a href="#">Sub Menu Item 1</a></li>
                    <li><a href="#">Sub Menu Item 3</a>
                        <ul class="sub-level">
                            <li><a href="#">Sub Sub Menu Item 1</a></li>
                            <li><a href="#">Sub Sub Menu Item 2</a></li>
                            <li><a href="#">Sub Sub Menu Item 3</a></li>
                            <li><a href="#">Sub Sub Menu Item 4</a></li>
                        </ul>
                    </li>
                </ul>
            </li>
            <li>
                <a href="#">News</a>
                <ul class="sub-level">
                    <li><a href="#">Sub Menu Item 1</a>
                        <ul class="sub-level">
                            <li><a href="#">Sub Sub Menu Item 1</a></li>
                            <li><a href="#">Sub Sub Menu Item 2</a></li>
                            <li><a href="#">Sub Sub Menu Item 3</a></li>
                            <li><a href="#">Sub Sub Menu Item 4</a></li>
                        </ul>
                    </li>
                    <li><a href="#">Sub Menu Item 2</a></li>
                    <li><a href="#">Sub Menu Item 3</a></li>
                </ul>
            </li>
        </ul>
    </div>
    

    CSS:

    #navigation {font-size:0.75em; width:150px;}
    #navigation ul {margin:0px; padding:0px;}
    #navigation li {list-style: none;} 
    
    ul.top-level {background:#666;}
    ul.top-level li {
     border-bottom: #fff solid;
     border-top: #fff solid;
     border-width: 1px;
    }
    
    #navigation a {
     color: #fff;
     cursor: pointer;
     display:block;
     height:25px;
     line-height: 25px;
     text-indent: 10px;
     text-decoration:none;
     width:100%;
    }
    #navigation a:hover{
     text-decoration:underline;
    }
    
    #navigation li:hover {
     background: #f90;
     position: relative;
    }
    
    ul.sub-level {
        display: none;
    }
    
    ul.sub-level {
        display: none;
    }
    li:hover .sub-level {
        background: #999;
        border: #fff solid;
        border-width: 1px;
        display: block;
        position: absolute;
        left: 75px;
        top: 5px;
    }
    
    ul.sub-level {
        display: none;
    }
    li:hover .sub-level {
        background: #999;
        border: #fff solid;
        border-width: 1px;
        display: block;
        position: absolute;
        left: 75px;
        top: 5px;
    }
    ul.sub-level li {
        border: none;
        float:left;
        width:150px;
    }
    
    /*Seconda Level*/
    #navigation .sub-level {
        background: #999;
    }
    
    /*Third Level*/
    #navigation .sub-level .sub-level {
        background: #09C;
    }
    
    /*RESET STYLES*/
    li:hover .sub-level .sub-level {
        display:none;
    }
    .sub-level li:hover .sub-level {
        display:block;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one element which is styled by two css documents: 1. ul[editable=yes] li
I've made a two level menu using CSS and HTML (ul's etc). What I
I have a menu in which only one item has a sublist. Here is
i have a menu which i want to display vertically. This is the css
I have a CSS hover menu which works in all browsers except... surprise --
I have a menu running off of a sitemap which one of the SiteMapNode
I have two frames - left frame contains menu options created using css and
I have similar CSS base menu which by default pops down i am not
I have a horizontal CSS menu. The problem is when the user creates more
I have a CSS dropdown menu that is functioning how I want it to

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.