OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <html> |
| 3 <head> |
| 4 <style> |
| 5 .reset_section { |
| 6 counter-reset: reset_section_count 13; |
| 7 } |
| 8 .reset_section { |
| 9 counter-increment: reset_section_count; |
| 10 counter-reset: none; |
| 11 } |
| 12 .reset_section > .title:before { |
| 13 content: counter(reset_section_count); |
| 14 } |
| 15 .increment_section { |
| 16 counter-increment: increment_section_count 2; |
| 17 } |
| 18 .increment_section { |
| 19 counter-increment: none; |
| 20 } |
| 21 .increment_section > .title:before { |
| 22 content: counter(increment_section_count); |
| 23 } |
| 24 </style> |
| 25 </head> |
| 26 <body> |
| 27 <div class="reset_section"> |
| 28 <div class="title">Reset Section 1 title</div> |
| 29 </div> |
| 30 <div class="reset_section"> |
| 31 <div class="title">Reset Section 2 title</div> |
| 32 </div> |
| 33 <div class="increment_section"> |
| 34 <div class="title">Increment Section 1 title</div> |
| 35 </div> |
| 36 <div class="increment_section"> |
| 37 <div class="title">Increment Section 2 title</div> |
| 38 </div> |
| 39 <div class="increment_section"> |
| 40 <div class="title">Increment Section 2 title</div> |
| 41 </div> |
| 42 </body> |
| 43 </html> |
OLD | NEW |