I am a 68 year old volunteer trying to build a website for a small nonprofit group. I need to place a standard page of text on a web page in such a way that any site visitor may print it out on one standard sheet simply by clicking "Print" or the printer icon, while viewing the page.
-
6This is not entirely trivial. Have you considered using PDF documents? Those are the most reliable in terms of correct printing results. – Pekka Mar 13 '11 at 20:34
4 Answers
This is a "Very Difficult Problem", mainly due to the fact there is very little the browser must do from what you tell it to. There are several text-based browsers for instance that will not show any of your pictures or other graphical styling which generally leads to a big list of links for a menu at the top of the page. This would translate to a lot of vertical space on a printed page. Another more common change is that fonts will be changed by the browser to make them larger or smaller, obviously this would affect your layout too.
Your best bet if there is only a single page or a small subset of your website that you are worried about then do these pages as PDF's or something similar. These will guarantee your layout, design, and most of all how many pages your document takes up.

- 127,823
- 52
- 194
- 222
Printing from a web page is extremely difficult. In most recent browsers and from internet explorer 7 has a "shrink to fit page" option which the user has to define when they print.

- 983
- 1
- 7
- 18
I found it best to have a css file just for printing that detects the print media type.

- 2,276
- 4
- 32
- 40