3

I want to have automatically created the numbering of a list of items in html, something like this:

1. Heading 1
   Text
1.1 Heading 1.1
   Text
2. Heading 2
  Text
2.1 Heading 2.1
   Text
2.2 Heading 2.2
   Text

It is the same as using Word, Latex or any other that allows you setting styles.

Any JavaScript, CSS, etc?

pimvdb
  • 151,816
  • 78
  • 307
  • 352
jlanza
  • 1,208
  • 3
  • 23
  • 43

2 Answers2

6

This can be done through css/HTML

The following site has a nice tutorial on how to: http://doctype.com/make-ordered-list-go-up-111213-instead-123

ChrisK
  • 1,392
  • 10
  • 12
0

I think it gets down to some javascript. ordered lists etc. will not help you out here. Maybe you can write some smart script using jquery based on child/parent logic that does the trick for you.

Bas Slagter
  • 9,831
  • 7
  • 47
  • 78