css - How to specify an element to re-appear after a page break? -
background: have php script generates long html/css document gets converted pdf wkhtmltopdf.
at 1 point in document, enter dynamic area variable number of entries, of include large images. want redraw header on every page.
point of clarification: repeated header in print view of section of webpage, not header entire page.
how want via css. example (pseudocode):
#some_region:pagebreak { background-color: #fcc; border-color: #000; border-style: solid; border-width: 0 0 1px 0; content: "our header here"; }
of course, fictitious css3 selector not exist!
are there clever css hacks can used display element after page-breaks within container?
to illustrate: https://scott.arciszewski.me/public/23277702.php
what position: fixed;
header in @media print
? force header on each printed page. like:
@media screen { .print-header { display: none; } } @media print { .print-header { position: fixed; ... } }
Comments
Post a Comment