Numbering ordered lists

Revision as of 15:48, 23 May 2022 by Margit Link-Rodrigue (talk | contribs) (Created page with "To number nested ordered lists , you can add the following CSS to the page ''MediaWiki:Common.css''.<syntaxhighlight lang="text"> .mw-content-ltr ol, .ve-ce-branchNode ol{ co...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

To number nested ordered lists , you can add the following CSS to the page MediaWiki:Common.css.

.mw-content-ltr ol, .ve-ce-branchNode ol{ counter-reset: item; margin-left:1.5em }
.mw-content-ltr li { display: block }
.mw-content-ltr li:before, .ve-ce-branchNode li:before { content: counters(item, ".") "."; counter-increment: item; margin-right:0.5em  }
.ve-ce-branchNode  li p { display: inline}

Output:

  1. Schritt 1
    1. Unterschritt 1
    2. Unterschritt 2
      1. Unterschritt Level 2



To submit feedback about this documentation, visit our community forum.