Skip to content

Instantly share code, notes, and snippets.

@magemore
Created April 25, 2012 04:50
Show Gist options
  • Save magemore/2486489 to your computer and use it in GitHub Desktop.
Save magemore/2486489 to your computer and use it in GitHub Desktop.
Adding print page breaks – page-break
.page-break{
page-break-before:always;
}
@magemore
Copy link
Author

This adds nice page breaks to articles and other long-form content on your website when your visitor decides to print it. Yeah, less and less people are printing on paper, but they’re using their web browser’s print function to create digital copies (PDFs) for future reading or archiving. This snippet makes it easier for them to do so and read afterwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment