Skip to content
Let’s Talk
Guides

Website Print Stylesheets: How to Make Your Pages Print Cleanly

How to make website pages print cleanly: what a print stylesheet does, what to hide and keep, links, images, page breaks, testing and platform tips.

By the Prism Works Studio team · · 7 min read

Key takeaways

  • A print stylesheet tells the browser how a page should look on paper or as a saved PDF, separately from how it looks on screen.
  • Good printed pages hide navigation, banners and buttons, keep the main content readable, and show the information people need offline.
  • Print styles are easy to forget during a build, so test key pages with the browser print preview as part of routine checks.

People still print web pages. They print recipes, directions, care instructions, terms and conditions, order confirmations, event details and guides they want to read away from a screen. Many also save pages as PDFs using the print option in their browser. If your site has not been designed with this in mind, the result can be messy: menus spread across the first page, cookie banners covering text, huge images, and buttons that make no sense on paper.

A print stylesheet solves this. This guide explains what a print stylesheet is, what a printable page should include and leave out, how to handle links, images and page breaks, and how to approach print styles on WordPress and Shopify. It is written for site owners and project leads, with only light technical detail.

What a print stylesheet is

Websites use CSS to control how pages look. CSS can be targeted at different types of media, and one of those is print. A print stylesheet is a set of style rules that only apply when someone prints a page or saves it as a PDF through the browser. The screen version stays exactly as it was.

In practice, print styles are often a section of the main stylesheet wrapped in a print media query, rather than a separate file. Either approach works. What matters is that someone has thought about how pages look on paper.

Which pages are worth the effort

Not every page needs special attention, but some are much more likely to be printed than others. Think about your own site and the content visitors may want offline:

  • Guides and how-to articles that people follow step by step.
  • Recipes, care instructions and assembly guides.
  • Directions, opening times and contact details.
  • Policies and terms, such as returns, delivery and privacy pages.
  • Event, course or booking information.
  • Price lists and product specifications, where people compare offline.
  • Order confirmations and account pages for ecommerce sites.

A general print stylesheet that improves every page is a good baseline. Pages that are printed often may deserve extra care.

What to hide when printing

On paper, many interface elements have no purpose. A typical print stylesheet hides:

  • The main navigation and mobile menu button.
  • Cookie banners, pop-ups and chat widgets.
  • Search boxes and forms that cannot be used on paper.
  • Social sharing buttons and decorative icons.
  • Sidebars that contain only promotions or related links.
  • Video embeds and carousels that will not print meaningfully.
  • Most of the footer, apart from essential contact or legal information.

Hiding these brings the main content to the top of the first page and can reduce the number of pages printed. Our guides to pop-ups done well and footer design cover how these elements behave on screen.

What to keep and improve

The printed page should still be recognisably yours and useful on its own.

Branding

Keep a simple version of your logo or business name at the top, so anyone picking up the page later knows where it came from. A large header image is rarely needed.

Title and content

The page title and main content are the point of the printout. Make sure body text is a comfortable size, set in a dark colour on a white background. Light grey text, coloured backgrounds or reversed-out text can be hard to read on paper and can use a lot of ink.

Contact details and source

Consider showing your website address, phone number or other contact details at the end of the printed page. Browsers can add the page URL in headers or footers, but users can turn these off, so do not rely on them for anything essential.

Layout

Multi-column layouts often print poorly. A single column usually works best on a portrait page. Removing fixed widths and letting content use the full width of the paper helps.

Handling links

On screen, a link is something you click. On paper, it is just underlined text, and the reader cannot see where it goes. There are a few approaches:

  • Show the URL after important links. Print styles can add the link address in brackets after the link text. This is helpful for external references but can clutter pages with many links.
  • Show URLs only for selected links. Limit the effect to links in the main content, and skip internal navigation links.
  • Write link text that makes sense on its own. Descriptive link text helps both printed pages and screen reader users, which ties in with good website accessibility practice.

Whichever approach you choose, keep printed links readable rather than leaving them in a light brand colour.

Images and backgrounds

Browsers do not print background images and colours by default, unless the user changes a setting. That means anything important should not depend on a background image or colour. If text sits on a coloured block on screen, check that it is still readable when the background disappears.

Content images, such as diagrams or product photos, usually do print. Make sure they are constrained to the page width so they do not spill off the edge, and consider whether very large decorative images should be hidden. Our guide to website image optimisation covers how images are prepared for the screen.

Page breaks

CSS gives some control over where pages break. Useful rules include:

  • Avoiding breaks immediately after headings, so a heading does not sit alone at the bottom of a page.
  • Avoiding breaks inside images, tables and short blocks such as quotes or callouts where possible.
  • Starting a new page before major sections in long documents, if that suits the content.

Browser support for page break rules is not perfect, and results differ between browsers, so test rather than assume. For long tables, repeating the header row on each page can help readability where browsers support it.

Expanding hidden content

Many pages hide content behind accordions, tabs or read more buttons. On paper, hidden content simply does not appear. Print styles can expand accordions and show every tab panel in sequence, so the printed version contains all the information. This matters for FAQ sections in particular. Our guide to website FAQ pages covers how these are built on screen.

Print styles on WordPress

On WordPress, print styles normally belong in the theme. If you use a custom or child theme, a developer can add a print section to the theme stylesheet. Our guide to WordPress child themes explains why changes like this should live in a child theme rather than a parent theme that will be updated.

Some themes already include basic print styles. Check by using print preview on a few pages before deciding what needs adding. The block editor also adds its own classes to blocks, which can be useful when targeting elements such as buttons or embeds.

Print styles on Shopify

On Shopify, print styles can be added to the theme's stylesheet. As with any theme customisation, consider how this interacts with theme updates. Our guides to Shopify theme customisation and Shopify theme updates explain how to keep custom changes manageable.

For ecommerce, the pages customers print are often order-related. Order confirmation emails and the order status page matter here, as do product pages with specifications. Packing slips and invoices printed from the Shopify admin use their own templates rather than the storefront theme.

Testing printed pages

Testing print styles is straightforward. Open a page, use the browser's print option, and look at the preview. Saving as a PDF gives a file you can review or share with colleagues. Check:

  • The first page starts with the title and content, not navigation.
  • No banners, pop-ups or widgets appear.
  • Text is readable and images fit the page.
  • Hidden sections such as accordions are expanded.
  • Headings are not stranded at the bottom of pages.
  • Important links make sense without being clickable.

Try more than one browser if you can, as print output differs. Adding print preview to your checklist for new templates helps stop the issue returning. Our guide to website staging and testing covers how to fold checks like this into a wider testing routine.

How Prism Works Studio can help

Prism Works Studio designs and builds WordPress and Shopify sites for UK businesses. If pages on your site print badly, we can add sensible print styles to your theme and check the pages your visitors are most likely to print. See our website and ecommerce development service, our pricing page, or get in touch.

FAQs

What is a print stylesheet?

It is a set of CSS rules that only apply when a page is printed or saved as a PDF from the browser. It changes the printed layout without affecting the screen version.

Why does my website print badly?

Usually because no print styles were added, so menus, banners, sidebars and large images are printed along with the content.

Can I hide the cookie banner when a page is printed?

Yes. Print styles can hide banners, pop-ups, chat widgets and other elements that have no use on paper.

Do background colours print?

Browsers usually skip background colours and images by default, so important content should not depend on them.

Do I need print styles on an online shop?

It helps for pages customers may print, such as product specifications, policies and order pages. Admin packing slips and invoices use separate templates.

Free consultation

Let’s Talk About Growing Your Business Online.

Book a free, no-obligation 30-minute discovery call with one of our senior digital strategists.