Building a reliable print layout for web pages
A web page and a printed sheet have different jobs. On screen, visitors can scroll, open menus, use overlays and zoom into small areas. Paper offers none of those interactions, so the printed version must reveal content in a deliberate reading order. A dedicated print layer prevents navigation, oversized graphics and decorative colour blocks from wasting space.
Knowing how to implement a print stylesheet for your pages means giving paper its own set of layout rules. The same HTML can remain the source for both views, while print rules widen the main column, remove controls and set readable typography. This separation also keeps ordinary screen styles simple and makes later changes easier to audit.
Australian organisations still produce printed invoices, event guides, care plans, council notices and product specifications. Clear formatting helps staff in major cities and regional areas create consistent documents at a shared office, warehouse or home desk. A4 paper, local date conventions and familiar contact details deserve careful attention in that result.
| Screen view | Printed sheet |
|---|---|
| Full-width navigation and sticky controls | Only the content needed on paper |
| Decorative backgrounds and large imagery | Compact headings, readable columns and selective images |
| Clickable links and form controls | Visible destinations, reference values and static instructions |
| Flexible scrolling area | Predictable page size, margins and page breaks |
Create a dedicated print layer
Link a print-only stylesheet from the document head and let its media attribute control when it loads. This approach separates print rules from the main bundle and ensures browsers do not apply those rules to the normal screen layout. It also gives designers a predictable file to review and maintain.
<link rel="stylesheet" href="/css/print.css" media="print">
If a site keeps all CSS in one file, an @media print block provides the same cascade within that file. Keep selectors scoped to components so a rule intended for a receipt or article cannot accidentally affect unrelated content. Check the stylesheet after every major layout change, since a new utility class may have a different effect on paper.
Set page dimensions and readable flow
A4 is the standard paper size used in most Australian workplaces. Define the intended sheet and a margin that leaves room for printer non-printable edges, then let the content width respond to the page rather than the screen container.
@page {
size: A4;
margin: 18mm;
}
body {
max-width: none;
margin: 0;
font-size: 11pt;
line-height: 1.45;
}
Avoid fixed pixel heights because they can clip content when the browser scales the page. Set a readable type size, use relative spacing around headings and lists, and ensure long URLs can wrap. Test both portrait and landscape only where a document genuinely needs both orientations.
Page breaks need deliberate control. Apply break-inside: avoid to figures, cards and short tables that should remain whole while allowing long sections to flow across sheets. Use break-after: page for a compulsory new section and orphans and widows to reduce isolated lines at page boundaries. Repeated table headings can be supported with thead { display: table-header-group; }.
Remove navigation and interactive clutter
Menus, search controls, filters, sticky promotional bars and βback to topβ links have little value on paper. Mark these elements with shared selectors or a utility class and hide them in the print layer. Form buttons can usually be removed, but labels, entered values and reference numbers needed to understand a record should remain.
.primary-nav,
.filters,
.promotional-bar,
.screen-only {
display: none !important;
}
Do not hide information merely because it is interactive. A booking confirmation, transaction identifier or service address may be essential, while a date picker or payment panel is usually unusable without its screen interface. Replace instructions that depend on hovering or clicking with a short printed direction. QR codes can remain when they accompany a visible address or reference that is useful without a phone.
Keep type, colour and images legible
Printed reading works best with slightly larger text, generous line height and strong contrast. Base body copy around 11 or 12 points, then adjust for the document rather than forcing one size across every page. Keep headings distinct through weight, size and spacing, and never rely on colour alone to communicate status.
Most documents look cleaner with white backgrounds and dark text. Highlighting can still be useful in charts or notices, but use it sparingly and test the result in greyscale. The print-color-adjust: exact property may preserve selected backgrounds, although it can consume ink and should not be applied globally. For external references, consider revealing the destination in plain text and apply the rule only where the URL adds context.
Use max-width: 100% for images and prevent small figures from splitting across pages. Keep captions beside their images and omit decorative graphics that do not explain the content. For Australian material, spell out dates as 8 March 2026 or 08/03/2026, include βGST 10%β where a taxable invoice requires it, and format landline contacts for Sydney, Melbourne and Brisbane with +61 followed by 2, 3 or 7 and no leading zero.
Validate the output on real paper
A print preview is a useful first check, but browser emulation cannot reveal every problem involving printer drivers, substituted fonts, toner coverage or page scaling. Test the final page in the browsers used by the audience and on at least one physical A4 printer. Compare the screen version at the same time to ensure print rules have not leaked into the normal view.
Run these checks before releasing a stylesheet:
- Confirm that
media="print"appears on the print stylesheet link. - Preview representative pages in Chrome, Edge and Safari where usage data justifies each test.
- Check that menus and controls disappear while essential details remain visible.
- Inspect page breaks around headings, lists, tables, images and signatures.
- Confirm that headings, body copy, captions and footnotes remain legible at actual size.
During a physical print check, examine:
- Read every page for clipped lines, missing text and awkward white space.
- Turn off printer background graphics to see whether contrast still works.
- Verify that external links show useful destinations without overflowing the margin.
- Confirm that page numbering, dates, currency, tax labels and contact details are correct.
- Retain a sample print beside the source page for comparison during future updates.
A reliable print layer is part of the page rather than a decorative extra. When tested against the content people actually print, it uses the same source while presenting it in a form that is calm, legible and useful on Australian paper.