Thursday, May 13, 2010

Page breaks in web pages

Sometimes the web page you are trying to print doesn't want to break nicely into pages. To break it manually, save the web page and add the following line to it's css:

.break { page-break-before: always; }

insert class="break" inside the tag, where you want the page to break and you're all set.

No comments: