@media print {
body { margin: 0; }
thead { counter-reset: pages; }
.page-number:before { counter-increment: pages; content: " "; }
.page-number:after { counter-increment: page; }
.page-number:after { content: "Page " counter(page) " of " counter(pages); }
}
I am trying to display total of page number for every printed page.
For current it will only show total pages for the first page.
E.g. got total page 3, it shows
Page 1 of 3 , Page 2 of , Page 3 of
I am trying most of the sample, but no luck. Is there anyway to achieve this?