In order to create an html ordered list, I am using a Nested counter.
This is the code snippet that I am using:
http://jsfiddle.net/Katalhama/YpgfF/
The expected output should be as follows:
0. zero
0.1 zero.one
1. one
1.1. one.one
1.2. one.two
1.3. one.three
2. two
2.1 two.one
2.2 two.two
2.2.1 two.two.one
2.2.2 two.two.two
3. three
However, the actual output that I am getting is different:
0. zero
0.0 zero.one
1. one
1.0 one.one
1.1 one.two
1.2 one.three
2. two
2.0 two.one
2.1 two.two
2.1.0 two.two.one
2.2.1 two.two.two
3. three
I would like the main list index to start at 0, while the sublists index starts at 1. I have considered using two counters but my knowledge of advanced CSS is still limited and I am unsure how to implement them correctly.
Thank you for any assistance!