I have the following code:
@page {
size: 8.5in 11in;
margin: 0.5in 1in;
orphans:4; /* min number of lines of a paragraph left at bottom of a page */
widows:2; /* min number of lines of a paragraph that left at top of a page.*/
/* Footnote related attributes */
counter-reset: footnote;
@footnote {
counter-increment: footnote;
float: bottom;
column-span: all;
height: auto;
}
}
@page chapter {
@bottom-center {
vertical-align: middle;
text-align: center;
content: element(heading);
}
}
@page chapter:right {
@bottom-right-corner { content: counter(page) }
}
@page chapter:left {
@bottom-left-corner { content: counter(page) }
}
Problem is that Prince is printing the page number on both right and left pages. It is also ignoring the requirement of only putting them in chapter pages and it has put it everywhere.
Any ideas of what do I need to change to make it so page numbers will only display on chapter pages?
@page {
size: 8.5in 11in;
margin: 0.5in 1in;
orphans:4; /* min number of lines of a paragraph left at bottom of a page */
widows:2; /* min number of lines of a paragraph that left at top of a page.*/
/* Footnote related attributes */
counter-reset: footnote;
@footnote {
counter-increment: footnote;
float: bottom;
column-span: all;
height: auto;
}
}
@page chapter {
@bottom-center {
vertical-align: middle;
text-align: center;
content: element(heading);
}
}
@page chapter:right {
@bottom-right-corner { content: counter(page) }
}
@page chapter:left {
@bottom-left-corner { content: counter(page) }
}
Problem is that Prince is printing the page number on both right and left pages. It is also ignoring the requirement of only putting them in chapter pages and it has put it everywhere.
Any ideas of what do I need to change to make it so page numbers will only display on chapter pages?