prevent figure splitting

This commit is contained in:
Mylloon 2024-11-17 19:03:49 +01:00
parent b828715f60
commit a4edf92e05
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -245,4 +245,11 @@ table:not(.hljs-ln) tr th:last-child {
.footnote-ref > a { .footnote-ref > a {
text-decoration: none; text-decoration: none;
} }
/* Prevent figures from splitting accross pages */
article *:has(img),
table:not(.hljs-ln),
table:not(.hljs-ln) > * {
page-break-inside: avoid;
}
} }