• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1328
  • Last Modified:

Set Page to Print on A4 paper

Hi,
How do I set a page to print on A4 paper.
I'm using CSS to generate plain text versions of my pages. Problem is, One half ends up on one page the other half ends up on another page.
How do I get the page to fit precisely on a a4 page?
0
dpinto04
Asked:
dpinto04
1 Solution
 
shefwebCommented:
Add a print stylesheet to your page with this line inside your <head> section
<link rel="stylesheet" type="text/css" media="print" href="print.css" />

And in print.css:

html, body, table, h1, h2, h3, h4, h5, h6, p { width: 100%; margin: 2em; }

That should format your page so it scales to the size of the paper. If you've used layout tables the solution will be more complicated, if you post a link to your page I can give you a more comprehensive answer.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now