html list style type 1 1 2

Solutions on MaxInterview for html list style type 1 1 2 by the best coders in the world

showing results for - "html list style type 1 1 2"
Elena
06 Apr 2019
1ol {
2  list-style-type: none;
3  counter-reset: item;
4  margin: 0;
5  padding: 0;
6}
7
8ol > li {
9  display: table;
10  counter-increment: item;
11  margin-bottom: 0.6em;
12}
13
14ol > li:before {
15  content: counters(item, ".") ". ";
16  display: table-cell;
17  padding-right: 0.6em;    
18}
19
20li ol > li {
21  margin: 0;
22}
23
24li ol > li:before {
25  content: counters(item, ".") " ";
26}