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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:00:58+00:00 2026-06-13T13:00:58+00:00

I am looking to make a two-column navigation bar by using a single <ul>

  • 0

I am looking to make a two-column navigation bar by using a single <ul> with six <li> items:

<nav>
    <ul>
    <li>Home</li>
    <li>About</li>
    <li>Team</li>    
    <li>Store</li>
    <li>Blog</li>
    <li>Contact</li>
    </ul>
</nav>​

Three elements on one side, and three on the other; ordered vertically.

Right now, it’s easy to do when making two seperate <ul> elements and putting padding/margins between them: http://jsfiddle.net/Baumr/SJcjN/ — but that’s not a great solution.

Could also wrap <span> tags around each set of three <li>‘s — but is that the only CSS solution?

Looking for some elegant ideas. Thank you!

  • 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-13T13:00:59+00:00Added an answer on June 13, 2026 at 1:00 pm
    <ul>
      <li>Home</li>
      <li>About</li>
      <li>Team</li>    
      <li>Store</li>
      <li>Blog</li>
      <li>Contact</li>
    </ul>
    

    CSS:

    li {
      width: 50%;
      float: left;
      padding: 5px 0; 
    }
    

    They will order like that:

    Home About
    Team Store
    Blog Contact
    

    If that’s not a problem, you have a very simple solution.

    EDIT:

    li:nth-child(even) {
      width: 50%;
      float: right; 
    }
    li:nth-child(odd) {
      width: 50%;
      float: left;
    }
    

    This will order them in the correct way. not sure how IE will act, but will work in all other browsers.

    or you can follow strictly the UL-LI concept, so your html will look like this an you can have as many column as you need:

    <nav>
        <ul class="menuitem">
           <li class="column">
              <ul>               
                <li>Home</li>
                <li>About</li>
                <li>Team</li>
              </ul>
            </li>
            <li class="column">
              <ul>               
                 <li>Store</li>
                 <li>Blog</li>
                 <li>Contact</li>
              </ul>
            </li>               
        </ul>
    
        <ul class="menuitem">
            <li class="column">
              .....
            </li>
        </ul>      
    
    </nav>
    

    Making a correct and well formated html can make your life easier.

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

Sidebar

Related Questions

I try to display my post using two column, to make sure the fit
I am looking to make a Master Detail View. I have two tables tbFamily
I'm looking to make some bar graphs to count item sales by day, month,
I need to make a Pie Chart and Bar graph using Perl. I need
Im looking to make my own implementation of these Identicons or Gravatars found here
I am looking to make a clickable div that has further divs nested inside.
I'm looking to make a website that will probably get some heavy, repetitive traffic.
I'm looking to make a show action of one of my controllers the root.
We are looking to make a final decision on our Mocking framework. After trying
I'm looking to make an RPG with Cocos2D on the iPhone. I've done 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.