Created
April 25, 2012 04:50
-
-
Save magemore/2486489 to your computer and use it in GitHub Desktop.
Adding print page breaks – page-break
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.page-break{ | |
page-break-before:always; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.