View Single Post
Old 07-06-2013, 04:42 PM   #21
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,071
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Quote:
All I can say is that when i tried it worked perfectly. Chapters incremented and reset and sections increased.
Could you attach a small epub so I can see how you did it?

In my test doc with your CSS, the H1's increment, but the H2's reset to 1 within each H1

I was trying to have both the H1's and H2's count up independently with out resetting so I'd end up with something like

Section 1
Chapter 1
Chapter 2
Chapter 3

Section 2
Chapter 4
Chapter 5
Chapter 6

Section 3
Chapter 7
Chapter 8
Chapter 9



Paul
Attached Files
File Type: epub Test CSS Counter3.epub (2.7 KB, 144 views)
phossler is offline   Reply With Quote