Forum How do I...?

reset pages numbering

cityzen
I've seen a few threads on here from around seven years ago so not sure if much has changed since then.

I am creating a PDF where I have a cover page and multiple content pages. I would like both the global pages counter as well as the current page count to both start on the first content page. I have my content wrapped in a div with a class of "content", on which I am calling

div.content { counter-reset: page 1; }


which works fine.

I have tried applying the counter-reset: pages but can't seem to get it to work. Is there a simple fix for this? I don't feel that my document is overly complex, just want to start both the page counter and current page on the first "content" page.

Thanks!

mikeday
Sure, just use this:
counter-reset: page 1 pages 1