Forum How do I...?

start on a left page, have a right page as second page etc.

pieter.lamers
I have found out how to set the start page number to a value from the document:
body {
counter-reset:page attr(startpage);
}
When this startpage value is an even number, I want the second page to use the @page:right rules in my css, but currently it assumes that the first page is always a right page, using the page:left for odd pages. Can this behavior be changed somehow?
mikeday
You can specify "page-break-before: left | right" on the root element of the document.
pieter.lamers
Thanks Mike, works like a charm. It took some time for me to wrap my mind around the concept of a page break before the first page that does not actually introduce a blank white page. so, for others, the recipe is now css:
body[start=even] {
    page-break-before:left;
}

with html:
<body start="even" startpage="28">

Edited by pieter.lamers

jim_albright
Thanks for the tip.

Jim Albright
Wycliffe Bible Translators

csant
Thanks pieter.lamers - may we include your little tip in the Prince documentation?
pieter.lamers
But of course; my previous post had a similar intention.