X-Git-Url: http://git.plutz.net/?p=cgilite;a=blobdiff_plain;f=common.css;h=f9b17ad8dc34dd3730429452ef05cc5bccfd883d;hp=99855b9f087086f22763dcbe49f2481f97263fbc;hb=e7e354d4d238ffd4cca5cb60b5dd273d4eb02e88;hpb=4b913ff67dee69b06224a77249baaef030565c8e 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 ======= */