Skip to content

Instantly share code, notes, and snippets.

@Frenzie
Created August 21, 2017 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Frenzie/a8ac21550a18ae12e39fa6576a2df0f2 to your computer and use it in GitHub Desktop.
Save Frenzie/a8ac21550a18ae12e39fa6576a2df0f2 to your computer and use it in GitHub Desktop.
@media print {
html {font-size: 12pt} /* wat je leuk vindt */
@page {size:10cm 13.5cm} /* schermgrootte */
@page {margin:2em 2.5em 1.5em} /* leef je uit */
@page {
/* dit zijn van die dingen die ik leuk vind */
@top { content: string(chapter-title); font-size:.6em;font-variant:small-caps }
@bottom {content: counter(page); font-size:.6em}
}
@page:first {
@top { content: normal }
@bottom { content: normal }
}
/* dit is misschien meer voor een echt boek */
@page:left {
@top { content: string(book-title) }
}
@page:right {
@top { content: string(chapter-title) }
}
h1 { string-set: book-title content() }
h3 { string-set: chapter-title content() }
h3, hr+h4 { page-break-before: always }
h2+h3 {page-break-before:avoid}
.p4{margin-top:0}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment