Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multilevel list in html

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?

like image 511
jlanza Avatar asked Dec 02 '25 16:12

jlanza


1 Answers

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

like image 65
ChrisK Avatar answered Dec 05 '25 06:12

ChrisK



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!