two level ordered list?
Can we have two or three level listing using <OL> or something like that?
an exmple of output:
as far as I know using <OL> we can only create a simple numbering but not for example 2.2 and 2.3.
1. Item one
2. Item two
2.1. Item two point one
2.2. Item two point two
3. Item Three
4. and so on
I was wondering if there is a tag that can do that for us?
Of course you can. You can nest as many as you need. You can mix and nest ol's ul's dl's and all sorts.
Ordered List types
Unfortunately the types for ordered lists are 1 (numbered), A and a (alphabetical), and I or i (roman numeral). There is no tag that I am aware of that allows a list type of 1.1 (number and decimal).
However, you can nest ordered lists and use an alternate type for the nested lists:
1. Item 1
A. Sub-item 1.A
2. Item 2
A. Sub-item 2.A
Last edited by wayne_ca; 06-19-2005 at 07:47 PM.
Eventually this sort of thing will come into play but for now it's best to generate that on the server side.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)