![]() ![]() * this affects the margin on the content before sending to printer */ĭisabling browser print options (headers, footers, margins) from page?įirstly said, I try to force all my users to use Chrome when printing because other browsers create different layouts. Now if you actually want to see the margins on the page we can. You can see here they are set to one inch all the way around, top, bottom, left, right. Then in the document area of the Sidebar you can find Document Margins. ![]() * this affects the margin in the printer settings */ First to actually see what the margins are set to you want to go to the Sidebar here. In Internet explorer, the margin is actually set to this value in the settings for this printing, and if you do Preview you will get this as default, but the user can change it in the preview. This currently works in all major browsers except Safari. To override this behaviour, the user must select 'Print preview' and then set the print size to 100% (default is Shrink To Fit).Ī better option for full control on printed margins is to use the directive to set the paper margin, which will affect the margin on paper outside the html body element, which is normally controlled by the browser. You should also be aware that IE7++ automatically adjusts the size to best fit, and causes everything to be wrong even if you use cm or mm. It will just set margin on the document inside the printable area. Note that setting the margin on the body in css style will not adjust the margin in the printer driver that defines the printable area of the printer, or margin controlled by the browser (may be adjustable in print preview on some browsers). bodyįor font sizes, use pt for the print media. Using cm or mm will ensure consistent size on the paper. Using pixels will cause the browser to translate it to something similar to what it looks like on screen. You should use cm or mm as unit when you specify for printing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |