Results 1 to 5 of 5

Thread: Dual Numbering Ordered List

  1. #1
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default Dual Numbering Ordered List

    Is there a way to have 2 line items as one line item? For example:

    Code:
    <ol>
         <li>Step 1.</li>
         <li>Step 2.</li>
         <li>Step 3.</li>
         <li>Step 4.</li>
         <li><li>Steps  5 & 6.</li></li>
         <li>Step 7.</li>
    </ol>
    Last edited by bluewalrus; 04-01-2010 at 02:49 AM.
    Corrections to my coding/thoughts welcome.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I have no idea, but I doubt it.

    You could do that, though, using a table, (lots of) divs, or perhaps even an unordered list using complex CSS to append the number(s).
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Those methods all involve static numbering though none where I could remove one step and the others are numbered correctly still, right?

    A example of this usage in the future, from past code:

    Code:
    <ol>
         <li>Step 1.</li>
     <!--    <li>Step 2.</li>-->
         <li>Step 2(3).</li>
         <li>Step 3(4).</li>
         <li><li>Steps  4(5) & 5(6).</li></li>
         <li>Step 6(7).</li>
    </ol>
    I think it may not be possible this way just wondering. How could I use css to append the UL?
    Corrections to my coding/thoughts welcome.

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    My suggestions above are various methods to research, not necessarily useful approaches. I'm not sure how to best accomplish this.

    If you want this: 1. 2. 4. (where "3." is simply missing), then I suggest just giving certain <li>s a class of "hide" with the CSS for that class set to display:none.

    If you want something more like 1. 2. 3/4. then that will be more complex and I'd suggest just looking at the ideas above or coding it with a table/etc. You could create a function in PHP (or possibly Javascript) that could generate a "special numbered list".

    EDIT:
    I just did a google search for controlling the number of an ordered list and this page was one of the results:
    http://www.w3.org/TR/html401/struct/lists.html
    Look at some of the details partway down the page.
    One interesting option is the 'value' parameter: <li value="5"> should set that number specifically to 5.
    Last edited by djr33; 03-31-2010 at 12:43 AM. Reason: found a link
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. The Following User Says Thank You to djr33 For This Useful Post:

    bluewalrus (04-01-2010)

  6. #5
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Oo okay thanks. Those all seem to be single values though I guess it's not possible via OL/UL's.
    Corrections to my coding/thoughts welcome.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •