This code leads to the desired output for me:
-
foo
-
bar
-
baz
-
qux
-
alpha
-
beta
-
gamma
CSS:
ol {
counter-reset: item;
}
li {
display: block;
}
li::before {
content: counters(item, ".")". ";
counter-increment: item;
}
Fiddle: http://jsfiddle.net/Lepetere/evm8wyj5/1/