Print Fragmentation
suggest change@media print {
p,
figure {
break-inside: avoid;
}
article {
break-before: page;
}
h2,
h3 {
break-after: avoid;
}
a {
color: currentColor;
text-decoration: underline;
}
}
This asks the print formatter to keep paragraphs and figures together when possible, start each article on a new page, and keep headings with following content. Preview printed output because paper size, margins, fonts, and user-agent pagination can affect the result.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents