A4 paper page Print HTML page page width set to how much

Source: Internet
Author: User

A4 paper Vertical printing, the width of the HTML page page is set to how much? This problem is we all puzzled, so the online collection, hope to help you

Recently developed the project encountered a Web page printing problem, this is the second problem, print width settings
A dpi (Dot Per Inch) indicator must be used when converting metric length units to screen resolution.
After my careful testing, found that the Web page printing, the default is 96dpi, not the rumored 72dpi
A4 paper size is 210x297mm, 1 inch =25.41mm conversion, that is 8.264x11.688 inch
So, the resolution of A4 paper 96dpi is 794x1123, which is the pixel we need when we make the Web page.
However, the printer is not full-width printing, there will always be a margin, so we must reduce the page margins when making the page.

Here are the pixel sizes for A4 paper that I tested under various margins:
The resolution of the largest element within the page when the print margin is set to 0mm: 794x1123
<div style= "width:794px;height:1123px;border:1px solid #000000;" > </div>

The resolution of the largest element within the page when the print margin is set to 5mm: 756x1086
<div style= "width:756px;height:1086px;border:1px solid #000000;" > </div>

The resolution of the largest element within the page when the print margin is set to 19.05mm: 649x978
<div style= "width:649px;height:978px;border:1px solid #000000;" > </div>
Report:
A4 size of paper: 210x297mm
A3 size of paper: 297x420mm

A4 paper page Print HTML page page width set to how much

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.