Saturday, December 04, 2021

CSS for Printing (to PDF)

medium.com/@Idan_Co/the-ultimate-print-html-template-with-header-footer-568f415f6d2a

plnkr.co/edit/lWk6Yd?preview

https://stackoverflow.com/questions/1360869/how-to-use-html-to-print-header-and-footer-on-every-printed-page-of-a-document

<div class="divFooter">UNCLASSIFIED</div>

CSS:

@media screen {
  div.divFooter {
    display: none;
  }
}
@media print {
  div.divFooter {
    position: fixed;
    bottom: 0;
  }
}
github.com/rachelandrew/css-for-print

www.smashingmagazine.com/2015/01/designing-for-print-with-css/
CSS modules that have been created not for use in web browsers, 
but to deal with printed and paged media.

No comments: