Home / Web Development / CSS / Disabling browser print options (headers, footers, margins) from page

Disabling browser print options (headers, footers, margins) from page

For printing page using window.print(). But in print screen the header and footer are available. Here I discuss one useful information related to this problem.
we can easy to remove html header and footer page. But remove PDF headers and footers is very dificult task in HTML. Solve this problem with pure CSS in HTML no need JavaScript or jquery.

Full Code

Note:“@page” directive will improve and you will be able to use the pure CSS solution in all browsers.

If anyone has doubts on this topic then please do let me know by leaving comments or send me an email.

Leave a Reply

Your email address will not be published. Required fields are marked *

Social Media Auto Publish Powered By : XYZScripts.com