I want every page that has an element with the class of title on it to not have any page numbers.
The problem I'm having is that the page brakes after the last element with that class.
Here's my CSS:
And here's some of my HTML
I get is this:
What I'm wanting is this:
Is this too much to ask of Prince, or is my ignorance plain to all?
Any help would be very much appreciated!
Thanks in advance.
The problem I'm having is that the page brakes after the last element with that class.
Here's my CSS:
@page {
margin: 1.5in;
@bottom-center {
content: '- ' counter(page) ' -';
font-size: 10pt;
}
}
@page clean {
@bottom-center {
content: normal;
}
}
p { text-align: justify; }
.heading {
display: block;
font-weight: normal;
text-align: center;
page: clean;
}
.partnumber {
text-transform: uppercase;
font-size: 13pt;
padding-top: 90pt;
page-break-before: always;
page-break-after: avoid;
}
.parttitle {
font-size: 20pt;
padding-top: 40pt;
page-break-after: always;
page-break-before: avoid;
}
And here's some of my HTML
<p class="heading partnumber">Part I</p>
<p class="heading parttitle">Part Name</p>
<p class="heading">Heading</p>
<p>Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec ullamcorper nulla non metus auctor fringilla. Donec sed odio dui. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Maecenas sed diam eget risus varius blandit sit amet non magna.Etiam porta sem malesuada magna mollis euismod. Nullam id dolor id nibh ultricies vehicula ut id elit. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Maecenas faucibus mollis interdum. Vestibulum id ligula porta felis euismod semper. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p>
I get is this:
What I'm wanting is this:
Is this too much to ask of Prince, or is my ignorance plain to all?
Any help would be very much appreciated!
Thanks in advance.