Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the CSS code to do page breaks for printing web pages?

Tags:

html

css

printing

What is the CSS code to do a page break when printing? Or better yet, is there some print CSS framework like JQuery is to web page DOM manipulation? I need to print web pages with control like Adobe PDF, but without using a third party plug-in. Prints need to be precise, like controlling what pixels hit the top of each page, (if we want to put our logo on each page header for example.

Any ideas?

like image 231
Zachary Scott Avatar asked Feb 07 '10 19:02

Zachary Scott


1 Answers

page-break-before: always;

page-break-after: always;

like image 153
Sam Avatar answered Nov 07 '22 04:11

Sam