From: Paul Hänsch Date: Sat, 20 Mar 2021 12:25:36 +0000 (+0100) Subject: basic print styles X-Git-Url: https://git.plutz.net/?p=cgilite;a=commitdiff_plain;h=e7e354d4d238ffd4cca5cb60b5dd273d4eb02e88 basic print styles --- diff --git a/common.css b/common.css index 99855b9..f9b17ad 100644 --- a/common.css +++ b/common.css @@ -87,6 +87,20 @@ input + label { margin-left: .375em; } +@media print { + @page { margin: 20mm; } + + h1 { text-align: center; } + + h1, h2, h3, h4, h5, h6, form legend { + page-break-inside: avoid; + page-break-after: avoid; + page-break-before: auto; + } + li { page-break-inside: avoid; } + th, dt { page-break-after: avoid; } +} + /* ======= End Generic Styles ======= */ /* ======= Common Styles ======= */