everyone!
How can I make mixed multilevel list in CSS similar like this:
enter image description here result
I try this variant. But this paste counter to unordered list
ol {
counter-reset: section;
list-style-type: none;
}
ol li:before {
counter-increment: section;
content: counters(section, ".") " ";
}
2
Answers
You can use counting
To create a multi-level list like the one you’ve described using HTML and CSS, you can use nested ul (unordered list) and li (list item) elements. The structure of the list will represent the hierarchy of the chapters and titles. Here’s an example of how you can achieve this: