No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
To create numbering as 1., 1.1, 1.1.1 and so on, use the following style:<syntaxhighlight lang="text"> | To create numbering as 1., 1.1, 1.1.1 and so on, use the following style:<syntaxhighlight lang="text"> | ||
article | /*Numbered lists*/ | ||
article ::marker { | |||
content: counters(list-item,'.')". " | |||
} | } | ||
article | article .references ::marker { | ||
content: " " | |||
} | } | ||
article | article ol { | ||
margin-left:2em!important; | |||
} | } | ||
/*Number footnotes separately */ | |||
article ol.references { | |||
counter-reset:ref; list-style-type:none; | |||
/* | |||
article ol.references { | |||
counter-reset:ref; list-style-type:none; | |||
} | } | ||
article ol.references li:before{ | article ol.references li:before{ |
Revision as of 12:49, 27 April 2023
To create numbering as 1., 1.1, 1.1.1 and so on, use the following style:
/*Numbered lists*/
article ::marker {
content: counters(list-item,'.')". "
}
article .references ::marker {
content: " "
}
article ol {
margin-left:2em!important;
}
/*Number footnotes separately */
article ol.references {
counter-reset:ref; list-style-type:none;
}
article ol.references li:before{
counter-increment:ref;
content:counter(ref) ". ";
float: left;
margin-right: 0.4em;
}
Output:
- Step 1
- Substep 1
- Substep 2
- Subsubstep 1
- Step 2