Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8709543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:23:11+00:00 2026-06-13T04:23:11+00:00

In chrome print preview, under Options tab, the default is having Headers and footers

  • 0

In chrome print preview, under Options tab, the default is having Headers and footers ticked on. Is it not possible to set it default to off via javascript / chrome extension / anything outside telling user to do it manually?

OR is it possible to remove the date displayed there?

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T04:23:12+00:00Added an answer on June 13, 2026 at 4:23 am

    In short, yes you can control this behavior. It is actually very bizzarre — as appears to have been originally answered in the question “In Google Chrome, Docs Can Control Headers and Footers from Javascript?” The secret to this behavior is in the @page CSS property*.

    If you set this exact style:

        @page { margin: 0; }
    

    Then you get the desired behavior, the headers & footers option disappears:

    Google Chrome print dialog without headers & footers option

    This appears to be an undocumented behavior of Google Chrome, or at least not widely known — cursory digging in to their developer docs garnered nothing. Google uses it themselves throughout their own web-apps, so it’s probably not a secret, but I couldn’t find any official notes on it.

    Notably, a margin of 0 does not simply disable the “headers & footers” option, it actually causes it to disappear from the menu entirely ( by quickly folding ).

    Experimentation reveals that other variations of this do not have the same effect. For example margin: 0; margin-left: 10cm; does not cause this behavior.

    If you do choose to implement this solution, it means forfeiting the ability to control those margins through the @page property — you should instead be controlling them as part of a CSS print-media stylesheet. Bummer that Chrome kind of destroys the @page property this way. That said, FF still does not support @page ( as of now ) so it’s not a perfect solution to begin with.


    *More information about the @page property

    The @page CSS is supposed to control the margins of the printed page, the specification says:

    The page box is a rectangular region that contains two areas:

    • The page area. The page area includes the boxes laid out on that page.
      The edges of the first page area establish the rectangle that is the
      initial containing block of the document. The canvas background is
      painted within and covers the page area.

    • The margin area, which
      surrounds the page area. The page margin area is transparent.

    Most modern browsers support the @page CSS property. Firefox is the standout who doesn’t, though they do fully document it in their developer resources, and their issue tracker has a ticket for this that goes back 10 years. The most recent action on it was today, so perhaps FF will provide @page support soon.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to print a PHP generated document in chrome, on the browser
print() doesn't work in IE after opening a new window. It works in Chrome.
I am having some trouble getting the graph created with jqplot to print with
While using browsers like Chrome and Firefox, there is an option to print the
Popup window is working fine in firefox and google chrome, but not working in
In Chrome, the following console.log(true, '\t'); will print true Why are there quotes hanging
How do I print debug messages in the Google Chrome JavaScript Console? Please note
I have a print page that opens in a new tab or window. The
In my chrome browser version 17.0.942.0 winvista the printdlg is not the usual modal
I'm trying to run a javascript window.print() from chrome. It prints the first time

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.