MediaWiki:Common.cs: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Asphyx (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „→Nummerierung für Überschriften aktivieren: h2, h3, h4, h5, h6 { counter-increment: section; position: relative; } h2:before { content: counter(section) " "; counter-increment: section1; counter-reset: section2 section3 section4 section5; } h3:before { content: counter(section1) "." counter(section2) " "; counter-increment: section2; counter-reset: section3 section4 section5; } h4:before { content: counter(sect…“) |
(kein Unterschied)
|
Version vom 30. März 2025, 15:10 Uhr
/* Nummerierung für Überschriften aktivieren */ h2, h3, h4, h5, h6 {
counter-increment: section; position: relative;
}
h2:before {
content: counter(section) " "; counter-increment: section1; counter-reset: section2 section3 section4 section5;
}
h3:before {
content: counter(section1) "." counter(section2) " "; counter-increment: section2; counter-reset: section3 section4 section5;
}
h4:before {
content: counter(section1) "." counter(section2) "." counter(section3) " "; counter-increment: section3; counter-reset: section4 section5;
}
h5:before {
content: counter(section1) "." counter(section2) "." counter(section3) "." counter(section4) " "; counter-increment: section4; counter-reset: section5;
}
h6:before {
content: counter(section1) "." counter(section2) "." counter(section3) "." counter(section4) "." counter(section5) " "; counter-increment: section5;
}