2

I want to add a page numbers when printing the document and I did search on it and I found that we can achieve this using CSS. For this we need to use @page css property. So I have added the following code

@page {
  /*margin-top: 15mm;*/
  margin-bottom: 25mm;
  margin-left: 30mm;
  margin-right: 30mm;

  @bottom-center {
  counter-increment: page;
  counter-reset: page 1;
      content: "page " counter(page);
  }
}

But I am facing the one problem, the above mentioned properties all are applied but my page numbers are not displaying. I don't know why its happening.

Can anyone facing the same issue? or anyone know the solution,please help out to fix this issue.

Deepti Kakade
  • 3,053
  • 3
  • 19
  • 30

1 Answers1

0

You may try this,

content: counter(page)

@page {
    @bottom-left {
        content: counter(page);
     }
 }
Mohideen bin Mohammed
  • 18,813
  • 10
  • 112
  • 118