How to create html list with a custom starting point and a order as I would apply sub-list like in the snippet below (but hide number of the outer list nd align test as default in outer list).
The result should look like
1.1 Item...
...some Text...
1.2 Item
1.3 Item
or
2.1 Item
2.2 Item
Item...
...some Text...
2.3 Item
depends on the starting point.
ol {
counter-reset: section;
list-style-type: none;
}
li::before {
counter-increment: section;
content: counters(section, ".") " ";
}
<ol start="2">
<li>
<ol>
<li>Item<br>Item</li>
<li>Item</li>
<li>Item</li>
</ol>
</li>
</ol>
2
Answers
you mean this ?
If you want to use the value of the start attribute, you can use the built-in counter "list-item". So: