Print from html pages in A4 size

I am designing this site, which should be fingerprinted for technical engineers, and page sizes vary. When pages are printed, tables are divided into two halves, which makes them difficult to read. Is there any code that can make prints fit into one A4 sheet per page.

Another solution is that I make a PDF on each page in A4 format and click on the “print this page” button on each page, but that seems a little unprofessional, any ideas?

+3
source share
3 answers

Try using the media CSS attribute to indicate the different CSS for printing. A.

, - ( CSS).

+6

CSS . , , web!= Print.

+2

The best way I found to maximize A4 format is that my CSS for printing uses% instead of Pixels, this ensures that no elements go out of the A4 print area.

+2
source

Source: https://habr.com/ru/post/1704293/


All Articles