-
Notifications
You must be signed in to change notification settings - Fork 12.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@page margin disables custom user settings in browser #1477
Comments
Do you have an example test to verify? |
ping @dieisraels |
Temporarily reactivated: I can't customize the border at print setup on current Firefox. By the way: Why h5bp uses the default value of 0.5cm? Most printers require a larger margin. Especially below. |
@dieisraels thanks for the test page. :)
As the commit that first introduced it doesn't offer any details, I presume the value is (was) the most common default among browsers. e.g.:
Observations:
I agree, and I personally think we should remove See also: |
+1 on removing it. We should let the browser figure out whatever is best. |
👍 |
1 similar comment
+1 |
Providing a default value (such as `5cm`) for the print margins is problematic because: 1) in some browsers, it prevents users from customizing the browser print settings 2) in some contexts (browser/os/printer), the value may be too: * small, and the margins may collide with all the different headers/footers (URL, date, etc) that are usually printed by default * big, and the margins will just waste the space Most browsers provide a default non-zero value for the print margins, so it's better to not specify a value at all, and just let them handle this themselves. See also: * http://www.w3.org/TR/css3-page/#at-page-rule * https://developer.mozilla.org/en-US/docs/Web/CSS/@page Close h5bp#1477.
Providing a default value (such as `5cm`) for the print margins is problematic because: 1) in some browsers, it prevents users from customizing the browser print settings 2) in some contexts (browser/os/printer), the value may be too: * small, and the margins may collide with all the different headers/footers (URL, date, etc) that are usually printed by default * big, and the margins will just waste the space Most browsers provide a default non-zero value for the print margins, so it's better to not specify a value at all, and just let them handle this themselves. See also: * http://www.w3.org/TR/css3-page/#at-page-rule * https://developer.mozilla.org/en-US/docs/Web/CSS/@page Close #1477.
The following css changes the margin at printing:
The problem is, that user customization at the browser print settings (tested on current Chrome and Firefox) are ignored. If the printer needs more than 0.5cm border on the page, the user can't change it and the content is cutted.
In my opinion not optimal as the default.
The text was updated successfully, but these errors were encountered: