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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:13:12+00:00 2026-05-22T22:13:12+00:00

I currently have a CSS <ul><li> dropdown menu that uses the following code. Unfortunately

  • 0

I currently have a CSS <ul><li> dropdown menu that uses the following code. Unfortunately I want the sub menus to display in 2 columns as there are about 16 items in that submenu. Does anyone know how to use the following code to make this drop down menu 2 columns?

.menu {
  border: none;
  border: 0px;
  margin: 0px;
  padding: 0px;
  font: 67.5% "Lucida Sans Unicode", "Bitstream Vera Sans", "Trebuchet Unicode MS", "Lucida Grande", Verdana, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: bold;
}

.menu ul {
  background: #006633;
  height: 35px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  float: left;
  padding: 0px;
}

.menu li a {
  background: #006633 url("../images/seperator.gif") bottom right no-repeat;
  color: #ffffff;
  display: block;
  font-weight: normal;
  line-height: 35px;
  margin: 0px;
  padding: 0px 25px;
  text-align: center;
  text-decoration: none;
}

.menu li a:hover,
.menu ul li:hover a {
  background: #003f20 url("../images/hover.gif") bottom center no-repeat;
  color: #FFFFFF;
  text-decoration: none;
}

.menu li ul {
  background: #006633;
  display: none;
  height: auto;
  padding: 0px;
  margin: 0px;
  border: 0px;
  position: absolute;
  width: 225px;
  z-index: 200;
  /*top:1em;
    /*left:0;*/
}

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

.menu li li {
  background: url('../images/sub_sep.gif') bottom left no-repeat;
  display: block;
  float: none;
  margin: 0px;
  padding: 0px;
  width: 225px;
}

.menu li:hover li a {
  background: none;
}

.menu li ul a {
  display: block;
  height: 30px;
  font-size: 12px;
  font-style: normal;
  margin: 0px;
  padding: 0px 10px 0px 15px;
  text-align: left;
}

.menu li ul a:hover,
.menu li ul li:hover a {
  background: #003f20 url('../images/hover_sub.gif') center left no-repeat;
  border: 0px;
  color: #ffffff;
  text-decoration: none;
}

.menu p {
  clear: left;
}
<div class="menu">
  <ul>
    <li><a href="#" target="_self">Main Item 1</a></li>
    <li><a href="#" target="_self">Main Item 2</a>
      <ul>
        <li><a href="#" target="_self">Test Sub Item</a></li>
        <li><a href="#" target="_self">Test Sub Item</a></li>
        <li><a href="#" target="_self">Test Sub Item</a></li>
        <li><a href="#" target="_self">Test Sub Item</a></li>
        <li><a href="#" target="_self">Test Sub Item</a></li>
        <li><a href="#" target="_self">Test Sub Item</a></li>
        <li><a href="#" target="_self">Test Sub Item</a></li>
        <li><a href="#" target="_self">Test Sub Item</a></li>
        <li><a href="#" target="_self">Test Sub Item</a></li>
        <li><a href="#" target="_self">Test Sub Item</a></li>
        <li><a href="#" target="_self">Test Sub Item</a></li>
        <li><a href="#" target="_self">Test Sub Item</a></li>
        <li><a href="#" target="_self">Test Sub Item</a></li>
        <li><a href="#" target="_self">Test Sub Item</a></li>
        <li><a href="#" target="_self">Test Sub Item</a></li>
        <li><a href="#" target="_self">Test Sub Item</a></li>
        <li><a href="#" target="_self">Test Sub Item</a></li>
        <li><a href="#" target="_self">Test Sub Item</a></li>
      </ul>
    </li>
    <li><a href="#" target="_self">Main Item 3</a></li>
    <li><a href="#" target="_self">Main Item 4</a></li>
    <li><a href="#" target="_self">Main Item 5</a></li>
    <li><a href="#" target="_self">Main Item 6</a>
      <ul>
        <li><a href="#" target="_self">Test Sub Item</a></li>
        <li><a href="#" target="_self">Test Sub Item</a></li>
        <li><a href="#" target="_self">Test Sub Item</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-22T22:13:13+00:00Added an answer on May 22, 2026 at 10:13 pm

    2018 edit

    Hey, 7 years later the columns css property is well supported

    ul{
      columns: 2;
    }
    <ul>
      <li>first item</li>
      <li>second item</li>
      <li>third item</li>
      <li>fourth item</li>
      <li>fifth item</li>
    </ul>

    You could probably get a similar effect with the very robust grid


    2011 original answer

    Make the ul twice as wide as the li‘s and float the li’s left

    http://www.behemothdan.com/2011/05/faux-mega-menu-in-wordpress/

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

Sidebar

Related Questions

I have a project that uses drop-down menus that are nested ul's, like so:
I have a pretty standard CSS based dropdown menu. The main list is #mainNav
I currently have an MS Access application that connects to a PostgreSQL database via
We currently have code like this: Dim xDoc = XDocument.Load(myXMLFilePath) The only way we
I currently have a functioning in-house Windows Forms application which extensively uses the DataGridView
I currently have a DetailsView in ASP.NET that gets data from the database based
I have a drop-down/multi-level CSS menu on a page. The menu however doesn't appear
I have a menu consisting of an <ul> in a Web CMS. I want
I have a drop-down menu that are dynamically added through WordPress. It looks like
I have written a CSS menu for a site I am helping develop, and

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.