Read the full guide for more. Printed from the Momo docs.
Pages that print well without any work: Momo leaves screen-only parts off the paper (navbar, banners, the back-to-top button, carousel arrows…), drops shadows, and keeps pictures and cards from splitting across pages.
What happens on its own
- Hidden when printing:
.navbar,.announce,.cookie-banner,.back-to-top,.scroll-progress, toasts, the skip link, the site sidebar and "On this page", carousel arrows and dots. - No shadows; pictures, quotes, code, cards and table rows don't break across pages; headings stay with the text after them.
Try it: press Ctrl + P (⌘ + P on a Mac) on the docs site example.
Your own choices
| Class | Does |
|---|---|
print:hidden | Leave this off the paper (a "Share" button, a video) |
hidden print:block | Only on paper (a URL, "Printed from example.com") |
.print-urls | On an article or <body>: every outside link prints its address after it |
<article class="prose print-urls">
<p>Read <a href="https://example.com/guide">the full guide</a> for more. <span class="hidden print:block text-muted">Printed from the Momo docs.</span></p>
<p class="print:hidden"><button class="btn btn-sm" type="button" onclick="window.print()"><i class="mi mi-printer" aria-hidden="true"></i> Print this page</button></p>
</article>