ProgramIn Studio All articles
Tooling

The Version They Keep: Making Your Site Behave on Paper

ProgramIn Studio
The Version They Keep: Making Your Site Behave on Paper

Photo: Kurt Schwitters, Public domain, via Wikimedia Commons

Every studio site has a surface nobody designs for: the printed page. Not the glossy brochure version — the Ctrl+P version, the one that lands as a PDF attachment in an accounts inbox in Leeds or a legal reviewer’s folder in Bristol. In the UK, that file is often the only copy that survives. Bookkeepers file it, VAT records keep it, and clients forward it to somebody who has never seen your website.

We treat print as a first-class surface at ProgramIn Studio. Not because paper is fashionable, but because the PDF is the artefact that outlives the tab. Here is the pass we run, usually an afternoon’s work, on any site with invoices, terms or receipts.

The page is the viewport now

Start with the page box rather than the screen. A4 is the default assumption in UK offices, and a sensible margin does more for legibility than any font tweak.

@media print {
  @page {
    size: A4;
    margin: 18mm 16mm;
  }

  html { font-size: 11pt; }
  body {
    background: #fff;
    color: #111;
  }

  nav,
  footer,
  .cookie-banner,
  .sidebar,
  .newsletter-prompt,
  .back-to-top {
    display: none !important;
  }

  main {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }
}

That is the whole reset. Resist the urge to hide everything with a class called .no-print and call it done; explicit is better, because the next person to add a banner will not know your convention.

Links need to show their destination

On screen, a link is a promise. On paper, it is a dead end unless you print the address. This is the single highest-value line of print CSS we add.

@media print {
  a[href^='http']::after,
  a[href^='mailto:']::after {
    content: ' (' attr(href) ')';
    font-size: 9pt;
    color: #444;
    word-break: break-all;
  }

  a[href^='#']::after,
  nav a::after,
  .button::after {
    content: '';
  }
}

Two details worth knowing. First, word-break: break-all stops a long tracking URL from pushing your terms into the margin. Second, exclude in-page anchors and navigation links, or your PDF will fill up with (#section-3) noise nobody needs.

Terms pages: break between clauses, not through them

Terms and conditions are the classic print failure. A clause splits across pages, the heading sits alone at the bottom of page two, and the reviewer assumes you wrote it that way.

@media print {
  h2, h3 {
    break-after: avoid;
    page-break-after: avoid;
  }

  .clause,
  .policy-section,
  li {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  p {
    orphans: 3;
    widows: 3;
  }
}

break-inside is the modern property; page-break-inside is the older alias that still helps in some engines. Keep both for a year or two yet. We also print a visible “Last updated” date in the document header rather than relying on the browser’s print header, because the browser header is optional and often switched off. If a legal reviewer is going to keep the PDF, give them the date on the page.

Invoices: tables that fit without a redesign

An invoice is a table with anxiety. The print version needs to fit A4 without horizontal scrolling, keep the totals visible, and — crucially — keep the payment details on the page. Nothing generates a support email faster than a PDF invoice that hides the bank details behind a “Pay now” button nobody can click.

@media print {
  table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
  }

  thead {
    display: table-header-group;
  }

  tr, .line-item {
    break-inside: avoid;
  }

  .pay-now-button,
  .sticky-cta {
    display: none !important;
  }

  .payment-details,
  .company-details {
    display: block !important;
    break-inside: avoid;
  }
}

display: table-header-group on the thead repeats column headings when a long invoice spills onto page two — a small thing that makes a studio look organised. We also add a print-only block with the company number and VAT number where relevant, since those are the details a finance team checks first.

Receipts are a one-page job

Receipts get their own treatment: no navigation, a large reference number, the amount, the date, and a line of support contact. Keep it to one page and check it at 100% zoom in the PDF viewer. If it spills to two pages, cut something — a receipt that needs a second page is a receipt somebody will query.

@media print {
  .receipt {
    max-width: 100%;
  }

  .receipt-reference {
    font-size: 16pt;
    font-weight: 600;
  }

  .receipt-footer {
    margin-top: 24pt;
    border-top: 1px solid #ccc;
    padding-top: 8pt;
  }
}

Test the export, not the preview

The browser’s print preview lies just enough to be dangerous. Test the actual PDF export in Chrome, Firefox and Safari, and check four things: page count, link destinations, table splitting, and whether dark-mode colours survived. Chrome and Firefox both add their own headers and footers by default; decide whether you want them and account for the space.

We keep a short fixture page — a fake invoice with a very long client name, a fake terms page with ten clauses, and a receipt — and export it whenever the print stylesheet changes. It takes five minutes and catches the regressions that would otherwise reach a client’s finance team.

The checklist we run before finance sees it

None of this is glamorous. But the printed page is the version your client keeps, forwards and files. Treat it like a surface you designed, and the PDF stops being an accident.

All Articles

Related Articles

Twice Past Midnight: A Clock-Change Drill for Anything on a Timer

Twice Past Midnight: A Clock-Change Drill for Anything on a Timer

Staging Is Not a Landfill: The Friday Reset That Keeps Demos Honest

Staging Is Not a Landfill: The Friday Reset That Keeps Demos Honest

The Coach C Audit: Building a Studio Site That Survives Half a Bar of Signal

The Coach C Audit: Building a Studio Site That Survives Half a Bar of Signal