I found a way to make a list with parentheses in HTML.
CSS:
/* CSS for List with Parentheses * Designed by Iseulbee */ ol.parenthesis { counter-reset: list-in-thm; margin-left: 0; padding-left: 0; } ol.parenthesis li { list-style: none; position: relative; padding-left: 0; margin-left: 2.2em; } ol.parenthesis li:before { content: "(" counter(list-in-thm) ")"; counter-increment: list-in-thm; position: absolute; width: 3.0em; left: -3.5em; text-align: right; }
HTML:
<ol class="parenthesis"> <li>The first element.</li> <li>The second element.</li> <li>The third element.</li> </ol>
Result:
- The first element.
- The second element.
- The third element.
As an application, you can replace the 16th line in CSS with one of these:
content: "[" counter(list-in-thm) "]";
content: "(" counter(list-in-thm, lower-latin) ")";
content: "(" counter(list-in-thm, lower-roman) ")";