Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder timgolding's Avatar
    Join Date
    Aug 2006
    Location
    Southampton
    Posts
    1,517
    Thanks
    114
    Thanked 110 Times in 109 Posts

    ordered list 1, 1a...

    Hi I have to produce an ordered list but some entries will be 1, 1a etc
    How can I use <ol> numeric list which autonumber the list items and specify the alpha sublists?
    e.g.
    1 Text Text
    1a Text Text
    2 Text Text
    3 Text Text
    3a Text Text
    3b Text Text
    4
    You can not say you know how to do something, until you can teach it to someone else.

  • #2
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    You can't have 1a unless you specify it yourself. The easiest way is:
    Code:
    <style type="text/css">
    ol {
        list-style: decimal;
    }
    ol ol {
        list-style: lower-alpha;
    }
    </style>
    ...
    <ol>
        <li>Lorem ipsum.
            <ol>
                <li>Dolor sit amet.</li>
            </ol>
        </li>
        <li>Lorem ipsum.
             <ol> 
                 <li>Dolor sit amet.</li>
             </ol>
        </li>
    </ol>

  • #3
    Senior Coder timgolding's Avatar
    Join Date
    Aug 2006
    Location
    Southampton
    Posts
    1,517
    Thanks
    114
    Thanked 110 Times in 109 Posts
    thanks you
    You can not say you know how to do something, until you can teach it to someone else.


  •  

    Posting Permissions

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