Skip to content

Commit

Permalink
fix(css): Add page-break-* properties along their break-* silblings
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- committed Nov 29, 2023
1 parent 90ce11e commit aff3a1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/css/print.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@
h1, h2, h3, h4, h5 {
// orphaned headlines are ugly
break-after: avoid;
page-break-after: avoid;
}
.image, img, table {
// try no page breaks within tables or images
break-inside: avoid-page;
page-break-inside: avoid;
// Some more indention
max-width: 90%!important;
margin: 5vw auto 5vw 5%!important;
Expand Down

0 comments on commit aff3a1a

Please sign in to comment.