Css Pdf Notes [DIRECT]
Using running() and element() .
@page size: A4; /* A4, letter, legal, landscape */ margin: 2cm; @top-center content: "Document Title"; @bottom-right content: counter(page);
@page @top-left content: element(page-header); css pdf notes
h2:before content: counter(chapter) "." counter(section) " "; counter-increment: section;
Control where content splits across pages. Using running() and element()
/* Orphan/widow control / p orphans: 3; / min lines at bottom of page / widows: 2; / min lines at top of page */
Use @media print to isolate PDF styles.
@page chapter-page size: A4; @bottom-center content: counter(page);
a[href^="#"] content: " (page " target-counter(attr(href), page) ")"; landscape */ margin: 2cm
