I have a list where I need to create the (rather odd) structure:
1.1.
1.1.1.
1.1.2.
1.1.3.
2.
1.1.4.
1.1.5.
1.1.6.
3.
4.
My working structure is:
<ol>
<li>
<ol>
<li></li>
<li></li>
<li></li>
</ol>
</li>
<li>
<ol>
<li></li>
<li></li>
<li></li>
</ol>
</li>
<li></li>
<li></li>
</ol>
I could just work around it and not use a list element (laying it out manually). But I was wondering if it's possible with standard <li>
elements, to set specific string values for the label of each item.
I have tried using the <li value=""></li>
syntax, but it only seems to work for integers.
To point out the key differences between this and a normal list:
- The top level list uses two different label "types" ("1.1" for the first, "2" for the second)
- The sub items in the second top level menu item follow on from those in the first list item.
- There are only two list "levels", but the sub menu items have 3 digit labels.
Is there any built in solution for list labels in structures that don't follow a numerical pattern?