I have the following CSS:
The XHTML looks like:
I want the final PDF to have all ChapterBlocks starting at a right (odd) page. But if the page before the ChapterBlock is blank (if the previous ChapterBlock or TitleBlock ended on a right page) I don't want any footer to be shown. Right now, the "blank" page uses the formating from the chapterPage:left, how can I prevent that and make my blank pages between chapters really blank?
div.ChapterBlock { page: chapterPage; }
@page chapterPage:left { @bottom-left { content: counter(page); } }
@page chapterPage:right { @bottom-right { content: counter(page); } }
div.TitleBlock+div.ChapterBlock { counter-reset: page 1; }
.TitleBlock { page-break-after: right; }
.ChapterBlock { page-break-before: right; }
The XHTML looks like:
<div class="TitleBlock">...</div>
<div class="ChapterBlock">...</div>
<div class="ChapterBlock">...</div>
I want the final PDF to have all ChapterBlocks starting at a right (odd) page. But if the page before the ChapterBlock is blank (if the previous ChapterBlock or TitleBlock ended on a right page) I don't want any footer to be shown. Right now, the "blank" page uses the formating from the chapterPage:left, how can I prevent that and make my blank pages between chapters really blank?