Skip to content

Commit 686e63b

Browse files
committed
Stop page breaks between paragrahs etc
1 parent 7a4fe40 commit 686e63b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

templates/monogame/public/main.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,12 @@ td > .xref {
487487
break-inside: avoid !important;
488488
}
489489

490+
/* Prevent page breaks inside paragraphs and common block elements */
491+
p, li, blockquote, .alert {
492+
page-break-inside: avoid !important;
493+
break-inside: avoid !important;
494+
}
495+
490496
/* Ensure proper page breaks */
491497
h1, h2, h3, h4 {
492498
page-break-after: avoid;

0 commit comments

Comments
 (0)