Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to remove header and footer in print

    • 0
    • 0
    • 0
    • 0
    • 3
    • 0
    • 0
    • 0
    • 2.01k
    Comment on it

    When we print some html page bydefault the header and footer comes. On different browsers its in different way. To remove it from chrome use

    @page{
            size: A4;
            margin: 5mm;  /* this affects the margin in the printer settings */
    }
    

    This sets and margin and remove the header and footer. But this does not work on mozilla. To hide these things from mozilla simply add this in html tag:

    <html moznomarginboxes="" mozdisallowselectionprint="">
    </html>
    

    This will remove header and footer from print using mozilla.

 3 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: