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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:13:59+00:00 2026-05-24T19:13:59+00:00

I have a 3-level deep, unordered list I’m styling to create a drop-down menu

  • 0

I have a 3-level deep, unordered list I’m styling to create a drop-down menu to extend this 2-level simple drop-down menu. The CSS is as follows:

@CHARSET "ISO-8859-1";
/* menu styles */

/* Top-level (Styles Works) */
#jsddm
{   margin: 0;
    padding: 0}

    #jsddm li
    {   float: left;
        list-style: none;
        font: 12px Tahoma, Arial;}

    #jsddm li a
    {   display: block;
        /*background: #324143; Old Style*/
        background: -webkit-linear-gradient(top, rgba(238,238,238,1) 0%,rgba(204,204,204,1) 100%); /* Chrome10+,Safari5.1+ */;
        padding: 5px 12px;
        text-decoration: none;
        border-right: 1px solid white;
        width: 70px;
        /*color: #EAFFED; Default color*/
        color: #000099;
        white-space: nowrap;}


    #jsddm li a:hover
    {   background: #24313C}

        /* 2nd-level (Styles Works) */
        #jsddm li ul
        {   margin: 0;
            padding: 0;
            position: absolute;
            visibility: visible;
            border-top: 1px solid white}

            #jsddm li ul li
            {   float: none;
                display: inline}

            #jsddm li ul li a
            {   width: auto;
                background: #dfeffc;
                color: #24313C}

            #jsddm li ul li a:hover
            {   background: #5c9ccc}

                /* 3rd-level (Doesn't apply styles) */
                #jsddm li ul li ul
                {   margin: 0;
                    padding: 0;
                    position: absolute;
                    visibility: hidden;
                    border-top: 2px solid green}

The styling works for the first two levels, but not for the 3rd, I’m not sure if I have the syntax correct or if there’s something else I’m missing. The html is as follows:

    <div id="dropDownDiv">
        <ul id="jsddm">
            <li><a class="btn" href="#">Top Item 1</a>
                <ul>
                    <li><a id="" class="btn" href="#">2nd Level Item 1</a></li>
                    <li><a href="#">2nd Level Item 2</a></li>
                </ul>
            </li>
            <li><a class="btn" href="#">Top Item 2</a>
                <ul>
                    <li><a id="" class="btn hide" href="#">2nd Level Item 1</a></li>
                        <ul>
                            <li><a id="" class="btn hide" href="#">3rd Level Item 1</a></li>
                            <li><a id="" class="btn" href="#">3rd Level Item 1</a></li>
                        </ul>
                    <li><a id="" class="btn" href="#">2nd Level Item 1</a></li>
                </ul>
            </li>
        </ul>
    </div>

Any suggestions are appreciated.

UPDATE:

Thanks for loaning me your eyes Gareth. Corrected html:

        <ul id="jsddm">
            <li><a class="btn" href="#">Top Item 1</a>
                <ul>
                    <li><a id="" class="btn" href="#">2nd Level Item 1</a></li>
                    <li><a href="#">2nd Level Item 2</a></li>
                </ul>
            </li>
            <li><a class="btn" href="#">Top Item 2</a>
                <ul>
                    <li><a id="" class="btn hide" href="#">2nd Level Item 1</a>
                        <ul>
                            <li><a id="" class="btn hide" href="#">3rd Level Item 1</a></li>
                            <li><a id="" class="btn" href="#">3rd Level Item 1</a></li>
                        </ul>
                    </li>
                    <li><a id="" class="btn" href="#">2nd Level Item 1</a></li>
                </ul>
            </li>
        </ul>
  • 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-24T19:14:00+00:00Added an answer on May 24, 2026 at 7:14 pm

    Your third level ul is not contained within an li. That might be causing your problem.

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

Sidebar

Related Questions

I have this fiddle: http://jsfiddle.net/tatygrassini/tZBXe/ Horizontal dropdown menu with a 1 level deep submenu.
I have a simple one level deep vocabulary taxonomy. Something like Vocabulary->Term->Node. What I
I have a nested array (only one level deep) like this: $a = array(
I have a fairly large, three level deep, menu consisting of nested lists like
If I have deep nested unordered list and I have a reference to the
Is it possible to have microsecond level timestamps in log4j logging? This is on
Okay, Now I have an unordered list here: <ul id="mycustomid"> <li><a href="url of Item
So I have some nested lists (only one level deep) and I'm running into
Please see screenshot: Goal: id like to have comments nested 1 level deep The
Is this possible? I plan to have 10 menu items where these are 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.