Benutzer:Alois/monobook.css: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Alois (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Alois (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 11: | Zeile 11: | ||
} | } | ||
h1:before { | @media print { | ||
content:counter(h1) ". "; | h1:before { | ||
counter-increment:h1 ; | content:counter(h1) ". "; | ||
} | counter-increment:h1 ; | ||
h1{ | } | ||
counter-reset:h2; | h1{ | ||
} | counter-reset:h2; | ||
} | |||
h2:before { | h2:before { | ||
content:counter(h1) "." counter(h2) ". "; | content:counter(h1) "." counter(h2) ". "; | ||
counter-increment:h2 ; | counter-increment:h2 ; | ||
} | } | ||
h2{counter-reset:h3;} | h2{counter-reset:h3;} | ||
h3:before { | h3:before { | ||
content:counter(h1) "." counter(h2) "." counter(h3) ". "; | content:counter(h1) "." counter(h2) "." counter(h3) ". "; | ||
counter-increment:h3 ; | counter-increment:h3 ; | ||
} | } | ||
h3{counter-reset:h4;} | h3{counter-reset:h4;} | ||
h4:before { | h4:before { | ||
content:counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) ". "; | content:counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) ". "; | ||
counter-increment:h4 ; | counter-increment:h4 ; | ||
} | |||
} | } | ||
Version vom 2. März 2011, 01:29 Uhr
h3 {
font-size: 132%;
border-bottom: 1px dashed #aaa;
font-weight: bold;
}
/* automatic header numbering */
body{
counter-reset:h1;
/* counter-increment:h1 -1; // to start with 0 */
}
@media print {
h1:before {
content:counter(h1) ". ";
counter-increment:h1 ;
}
h1{
counter-reset:h2;
}
h2:before {
content:counter(h1) "." counter(h2) ". ";
counter-increment:h2 ;
}
h2{counter-reset:h3;}
h3:before {
content:counter(h1) "." counter(h2) "." counter(h3) ". ";
counter-increment:h3 ;
}
h3{counter-reset:h4;}
h4:before {
content:counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) ". ";
counter-increment:h4 ;
}
}