Created
October 25, 2012 22:34
-
-
Save Ricardo-Diaz/3955905 to your computer and use it in GitHub Desktop.
CSS: Print Page Break
This file contains hidden or 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
Adding print page breaks – page-break | |
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. | |
.page-break{ | |
page-break-before:always; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment