Home › Forums › JavaScript › Your best snippets › Reply To: Your best snippets
December 6, 2016 at 8:25 am
#248705
bearhead
Participant
if you want to use something other than a period after the numbers in an ordered list:
ol{
list-style-type: none;
margin-left: 0;
}
ol li {
counter-increment: customlistcounter;
}
ol li:before {
content: counter(customlistcounter) "YOUR SYMBOL";
float: left;
width: 1.5em;
}
li:first-of-type {
counter-reset: customlistcounter;
}
example:
http://codepen.io/kvana/pen/JGyQNQ