My basic question: Is there a way to _force_ the page to maintain an 8.5" x 11" overall size (with margins) to be printable on a single page?
Background:
On a site that we are working on, there is a page generated that is _supposed_ to be able to print to a single portrait/8.5 x 11" page. Here is a sample:
http://www.vorkt.com/rtest/print-test.php
Simple, right? Unless in "shrink to fit" mode, the page insists on widening out and down.
I have seen references to the "@page" command, but am not seeing the How-To use it. If that is even the solution.
Any help appreciated as this is driving me batty.
-Arcane
//mod edit: Duplicate post deleted. gary/kk5st
Printing is quite rightly a
Printing is quite rightly a user controlled function. You, the author, cannot control it to any great degree. To force dimensions, use a PDF document. That is its purpose.
cheers,
gary
Argh.
Few things in this world are as annoying as reality.
Augment reality with a statement like "you can't do that" and it is enough to seriously frustrate.
As an alternative means to salvage the question, what is the usage of the "@print" code? And how is it used related to printing pages?
-Arcane
I believe you mean @media
I believe you mean @media print.
That works for defining the many properties (of the document, not the printed page) especially for printing. Eg., font sizes, sections that don't belong on the printed version, &c..
The part you're interested in is likely the
@page selector. To my knowledge, only Opera9 has any support.
The W3 does point out, "The size of a page box cannot be specified in CSS 2.1.". You can specify the margins, but that means different sized sheets will have differently proportioned documents anyway. Even in Opera9, it works just as well to let the user define his own margins, headers, &c..
On your part, it works for the best if your design and implementation are reasonably elastic.
cheers,
gary
Cheap, simple, easy, THANK YOU
So, how do you make sure that the user puts their print setup into "shrink to fit" mode? You tell them to. Then, using that lovely print.css alternative, you make the notification go away and thus not clutter up your pretty specs sheet.
The poster would like to express gratitude for being pointed in the right direction.
-Arcane