html - two extra blank page add when printing -


i using using css property printing, 2 page added in print. tried these thing:-

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

but not working

i tried:-

     html, body {       height: auto;      }  

but problem still there.

and when using this:-

    .print{     page-break-after:    } 

it prints blank page before

please add page-break-after: avoid or page-break-before: avoid , can reduce element spacing affect. if give me url/js fiddle link easier fix issue. have hanged many times on print version


Comments

Popular posts from this blog

java - Checkbox item adds to spinner -

C# MVC AngularJS -

How to debug "expected android.widget.TextView but found java.lang.string" in Android? -