Reputation: 2468
Is there any way to force Chrome to always print without headers and margins? Chrome keeps forgetting and it really messes up my cash register program (if the header is there, it tries to print the entire page, which is a lot of white space). If you have any CSS, Chrome settings, even hard-coded editing of Chrome itself: anything that can fix this would be appreciated.
Upvotes: 2
Views: 10776
Reputation: 11
I had the same issue. I wanted to override the print options so that the browser's headers and footers did not display.
Putting @page {margin: 5mm;}
into my CSS file worked perfectly. In fact if you use @page {margin: 0}
the Headers and Footers option is not even displayed on the Print Preview (in Chrome, I have not yet tested other browsers.
Upvotes: 1
Reputation: 3130
If you want to change this via your website, you can try using css media queries to hide or rearrange elements for printing.
@media print {
/* All your print styles go here */
margin: 0;
#header, #footer, #nav {
display: none !important;
}
}
Upvotes: 3