badlydrawnrob / print-first-css

0 stars 0 forks source link

Predictable page breaks #20

Open badlydrawnrob opened 5 years ago

badlydrawnrob commented 5 years ago

Perhaps using a <hr> with a .page-break class? (or no class at all)

Some more information on avoiding block elements to be "cut" in half when too long for a page. break-inside: avoid; should work, but on my version of Safari it doesn't.

Also worth reading is Laying out a print book with css which covers some page level css, and annoying bugs with page numbers.