I am defining a new template in which I need at least two list levels for ordered lists <ol> and for unordered lists <ul>.
So, in the past, I used the same <ol class="one"> style inside another <ol class="one"> style for second level because the second level uses the alignment of the first level as its zero point and has the same font and indent from zero. Obviously not good practise if I one day decide I want different indents/fonts etc in the second level.
However, now I have to define new style's (and implement them) I'm wondering what is better:
1. My second level will have a different name (e.g. <ol class="one"> and <ol class="two">) but with exactly the same properties. In this case, I need to make sure that each time I start a second level list (<ol class="two">) that it is inside the <li> of the outside list (<ol class="one">)
Code: Select all
<ol class="one">
<li>xxx</li>
<li>xxx
<ol class="two">
<li>xxx</li>
<li>xxx</li>
</ol></li>
<li>xxx</li>
</ol>Code: Select all
<ol class="one">
<li>xxx</li>
<li>xxx</li>
</ol>
<ol class="two">
<li>xxx</li>
<li>xxx</li>
</ol>
<ol class="one" start="3">
<li >xxx</li>
</ol>Thank you.