I have two <div> the first is float:top the second float:bottom. The content of the first div spreads multiple pages. On each page except the last one a footer text should appear. I tried to do it with two page definitions without success.
Since the second div is float the 'noPageFooter' class has no effect. And if I put it outside the second div an extra page without footer appears (no footer = good, extra page = bad).
Is there a way to achieve what I want?
Since the second div is float the 'noPageFooter' class has no effect. And if I put it outside the second div an extra page without footer appears (no footer = good, extra page = bad).
Is there a way to achieve what I want?
<html>
<head>
<title>Test</title>
<style type="text/css">
@page {
@bottom {
content: flow(pageFooterFlow);
}
}
@page noPageFooterPage {
@bottom {
content: normal;
}
}
.noPageFooter {
page: noPageFooterPage;
}
.pageFooter {
flow: static(pageFooterFlow);
}
</style>
</head>
<body>
<div style="float:top;">
<table>
<tr><td >top<p class="pageFooter">Footer text ....</p></td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
<tr><td >top</td></tr>
</table>
</div>
<div style="float: bottom; margin:0; padding:0;">
<table class="noPageFooter">
<tr><td >bottom</td></tr>
<tr><td >bottom</td></tr>
<tr><td >bottom</td></tr>
</table>
</div>
</body>
</html>