View Single Post
Old 07-06-2013, 11:02 AM   #18
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,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Thanks, but that's pretty much where I started, before I tried to be clever

Look at the screen shot which has your CSS. The H1's increment, but the H2's reset to 1 when the H1 changes.

I was trying to get the two counters to run 'independently' without the H2 counter reseting to 1 in the h1 { } so that the H1 counter just count up, and the h2 counters also just count up

So I was trying to get an automated numbering like I saw in some books, and I decided to try getting the counter's to give me:

Section 1
Chapter 1
Chapter 2
Chapter 3

Section 2 <------ should be incremented, but remains = 1 in my CSS
Chapter 4 <----- not reset to 1, but just incremented
Chapter 5
Chapter 6

Section 3 <------ should be incremented, but remains = 1 in my CSS
Chapter 7 <----- not reset
Chapter 8
Chapter 9

If all else fails, I'll go back to the outline numbering that I know works

Paul
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	206
Size:	80.3 KB
ID:	107851  
phossler is offline   Reply With Quote