/* mainly for pdf */ @media print { html { max-width: 85%; } h1, h2, h3, h4 { page-break-after:avoid; break-after: avoid; } } @page { size: A3 portrait; } body > ul > li, ul > ul, ul > ul > li { break-inside: avoid; } ul:nth-of-type(1) { margin-bottom: 1em; } .job-meta { float: right; }