+ 2

How can I do this on HTML?

1 animal 1.1 dog 1.2 cat

21st Jan 2019, 5:05 PM
digafeneh nesrie
digafeneh nesrie - avatar
6 odpowiedzi
21st Jan 2019, 6:32 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
Use css: ol{ counter-reset: item } li{ display: block } li:before { content: counters(item, ".") " "; counter-increment: item }
21st Jan 2019, 9:39 PM
PapaBT
PapaBT - avatar
+ 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
21st Jan 2019, 9:59 PM
digafeneh nesrie
digafeneh nesrie - avatar
+ 1
Try css ;-)
21st Jan 2019, 10:07 PM
PapaBT
PapaBT - avatar
+ 1
Tnx bro it's work by css
22nd Jan 2019, 5:00 AM
digafeneh nesrie
digafeneh nesrie - avatar
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
21st Jan 2019, 5:13 PM
giannismach
giannismach - avatar