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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:19:58+00:00 2026-05-25T22:19:58+00:00

Using the 960.gs framework, I’m trying to create a two columned ordered list where

  • 0

Using the 960.gs framework, I’m trying to create a two columned ordered list where each list item contains a heading and paragraph and the numbering goes across, not down e.g. the top row contains 1,2 not 1,3. The only way I can get it to work is to put a DIV between the OL and LI elements. This doesn’t feel right, I’m sure its wrong although I’m not sure why. What is the correct way to achieve this? I’ve got the following markup;

<div class="container_16">
<ol>
    <div class="grid_8">
        <li><h2>Heading</h2>
            <p>Paragraph</p>
        </li>
    </div>
    <div class="grid_8">
        <li><h2>Heading</h2>
            <p>Paragraph</p>
        </li>
    </div>
    <div class="clear"></div>
    <div class="grid_8">
        <li><h2>Heading</h2>
            <p>Paragraph</p>
        </li>    
    </div>
    <div class="grid_8">
        <li><h2>Heading</h2>
            <p>Paragraph</p>
        </li>    
    </div>
    <div class="clear"></div>
</ol>
</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-25T22:19:58+00:00Added an answer on May 25, 2026 at 10:19 pm

    It is invalid to place div elements inside the ol tag.

    Only li elements are allowed in there.. (check the W3C documentation on lists)

    The theory is to use

    ol{width:200px;}
    li{float:left;width:50%;}
    

    demo at http://jsfiddle.net/gaby/ZKdpf/1/


    For the 960.gs system you should use

    <ol class="container_16">
        <li class="grid_8">first</li>
        <li class="grid_8">second</li>
        <li class="grid_8">third</li>
        <li class="grid_8">fourth</li>
        <li class="grid_8">fifth</li>
        <li class="grid_8">sixth</li>
    </ol>
    

    and add in your css

    ol.container_16 li.grid_8{
       display:list-item;
    }
    

    to show the numbers again..

    demo at http://jsfiddle.net/gaby/ZKdpf/2/


    Update

    Indeed as you mention in your comment you need to clear every two elements, since the height of the li elements is not the same..

    For modern browsers you should add

    .benefits li:nth-child(odd) {
        clear: left;
    }
    

    or your can turn that in a class and add it to the odd numbered li elements.

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

Sidebar

Related Questions

i am using the 960 grid system to try and create a layout... I
I'm using 960 grid system to create a layout prototype. I would like to
Im using the 960 css framework. I have this code: <div class=container_16 id=header> div
im trying to create a basic profile for someone and am practicing using the
I'm using the 960.gs CSS framework on a site and have hit problems almost
Am evaluating 960 gs css framework for using on my site. Does anyone knows
I don't see the point of using either http://960.gs or http://blueprintcss.org if they enforce
Using C# .NET 3.5 and WCF, I'm trying to write out some of the
Using C# and System.Data.SqlClient, is there a way to retrieve a list of parameters
im using mvc framework and i have learned some techniques that help me with

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.