Results 1 to 2 of 2
  1. #1
    Star Lounger
    Join Date
    Sep 2002
    Location
    Detroit, Michigan, USA
    Posts
    92
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Outline listing in HTML

    HTML gives the web designer the option to display both ordered and un-ordered lists. Is there an option to code outlined lists like...1 1.1 1.2 1.2.1 1.2.2 and the such???
    Thanks in advance

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Outline listing in HTML

    Not listed in my "HTML The Complete Reference Second Edition," which covered IE5 and NS4, but maybe there is something in the CSS2 specification that is supported by newer browsers? Otherwise, as far as I can tell, you get a single digit, even when nested as below.

    <html><head>
    <title>Boring!</title>
    </head><body>
    1. First major item
      1. First sub-item
      2. Second sub-item

    2. Second major item
    3. Third major item
      1. First sub-item
      2. Second sub-item
        1. First sub-sub-item
        2. Second sub-sub-item




    End of document. Thankfully.
    </body></html>

    If you were to write the document body out with JavaScript, you could keep a set of counters and create any numbering you like, 'though it would be a challenge to get "neat" alignment that works across multiple browsers.

Posting Permissions

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