2

I am using using a CSS property for printing, two extra page always added in my print. for this I tried these thing:-

.print:last-child {
 page-break-after: auto;
 }

but this is not working

I am also tried:-

     html, body { 
     height: auto; 
    } 

but problem is still there.

and when I using this:-

    .print{
    page-break-after: always
   }

It prints an extra blank page before

ngstschr
  • 1,877
  • 2
  • 17
  • 36
Renu Thakur
  • 543
  • 9
  • 33
  • One of the things you can do to help debug this, is print pdf's. That way you don't waste ink and paper. – ngstschr Oct 15 '15 at 07:45

1 Answers1

0

please add page-break-after: avoid or page-break-before: avoid and you can reduce element spacing it also affect. if you give me url/js fiddle link it will be easier to fix issue. i have also hanged many times on print version

Kumar
  • 3,033
  • 5
  • 30
  • 47