+ 2
How can I do this on HTML?
1 animal 1.1 dog 1.2 cat
6 odpowiedzi
+ 1
//Don't skip lesson's
https://www.sololearn.com/learn/HTML/1032/?ref=app
+ 1
Use css:
ol{ counter-reset: item }
li{ display: block }
li:before {
content: counters(item, ".") " "; counter-increment: item
}
+ 1
Come on i didn't skip a single lesson.
My question is "sublist" like👇🏽
1.
1.1
1.1.1
2.
2.1
Not
1.Animal
1.dog
2.cat
+ 1
Try css ;-)
+ 1
Tnx bro it's work by css
0
You can place a list inside another list.
For example:
<ol>
<li> animal </li>
<ol>
<li>dog</li>
<li>cat</li>
</ol>
</ol>
Will render:
1. Animal
1. Dog
2. Cat