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

    Ordered list-HTML

    Can someone suggest the best way to create nested ordered lists?. I am trying to create lists that will be identified with different markers depending on the hierarchy of the entry. The idea would be to have just one master list with different levels.... .For example :
    1
    a
    b
    i
    ii
    iii
    d
    2
    ..and so on.

    Please note that there is no 1.1 or 1.1.1 structure involved here (is it possible to do something liek that on HTML??)

    Thanks in advance.

  2. #2
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Ordered list-HTML

    Yes, you can do this. See the examples on W3Schools: http://www.w3schools.com/html/tryit.asp?fi...l_lists_ordered

    Just be careful to closely manage your start and ending tags (both OL and LI) within the structure to make sure you get the expected results.

  3. #3
    Star Lounger
    Join Date
    Sep 2002
    Location
    Detroit, Michigan, USA
    Posts
    92
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Ordered list-HTML

    Hmmmmm...the example cited doesn't actually "nest" the lists....right? (Just gives an indication as to how to obtain different "bullets"...)

  4. #4
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Ordered list-HTML

    That is correct - the example did not show nesting. However, nesting is supported in this situation.

    Nesting is simple:<pre>[list=1]
    < li>Test
    < li>Test
    [list=A]
    < li>Test
    [list=i]
    < li>Test
    < li>Test
    < /ol>
    < /ol>
    < /ol></pre>

    (Ignore the space following the opening html tags - that was used to prevent the lounge from parsing the HTML tag.)
    I actually learned something new. I don't work with lists very much and I did not realize that HTML had native support for the different types of ordered lists.

Posting Permissions

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