one of my applications is web POS (Point Of Sale). therefore, when printing invoices in chrome. The page title and page footer are automatically inserted by the browser, which I want to suppress using the page and without user intervention.
I applied some CSS on top of this in print media,
@media print { #header, #footer { visibility: hidden !important; display: none !important; } }
But it doesnβt apply, maybe the selector is wrong?
And I also tried to reduce the margin, but its reduction / redefinition of the contents of the page if the print has several pages. And one more thing, I do not want to disable the print preview option for chrome.
Does anyone have a good solution for this?
Best wishes..
source share