3

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
  • 2,119
  • 2
  • 22
  • 38
Renu Thakur
  • 551
  • 11
  • 35
  • 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

Ram kumar
  • 3,152
  • 6
  • 32
  • 49