Restricting page count when printing

187 Views Asked by At

Is there any way that I can use CSS to restrict the number of pages that will print?

For example, I have an HTML template which is 2 pages long, dynamically filled with specific fields from my database. If anything causes the content to wrap onto a 3rd page, I still only want it to print on 2 pages, and omit the 3rd.

I was looking at the @page rule, thinking I could do something with pseudo selectors however it only appears to support :first, :last, :left and :right.

Any ideas?

0

There are 0 best solutions below