What are the defaults in browser print settings?

Does anyone know how many inches, by default, are applied to the top and bottom margins of pages in web printing? Specifically for IE and Chrome? Is this half an inch possible?

I am asking because I am writing CSS code to add headers and footers and have adopted a strategy that will use inches to set the heights of the div on the page.

+3


source to share


2 answers


+7


source


If you want consistency across browsers, you probably want to set margins consistently rather than relying on defaults. You can do it with CSS @page:

@page {
    margin-top: 0.75in;
    margin-bottom: 0.75in;
    margin-left: 0.75in;
    margin-right: 0.75in;    
}

      



Since the printers themselves also have minimum margins, and they differ by model and manufacturer, it is generally safer not to use margins under 0.5inches.

+5


source







All Articles