Hi,
I'm trying to float my tables to the tops of pages, but they keep overflowing where they shouldn't. (Sorry for pasting in so much code, but it was easier than trying to describe my setup).
Here's my stylesheet:
And here's a fragment of my html:
(The forum's code blocks appear to be eating my class="chapter" attributes in the div tags.)
The tables end up at the top of the next chapter instead of getting new pages. Is there any way to prevent this and get Prince to add new pages before the next chapter?
Thanks,
Andrew
I'm trying to float my tables to the tops of pages, but they keep overflowing where they shouldn't. (Sorry for pasting in so much code, but it was easier than trying to describe my setup).
Here's my stylesheet:
@page {
size: 8.5in 11in;
}
table {
border: 1pt solid black;
float: top;
}
.chapter {
page-break-before: right;
clear: top;
}
And here's a fragment of my html:
<body>
<div>
<h1>Chapter 1</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
(repeated 3 times)
<table>
<tr>
<td>12356789</td><td>12356789</td><td>12356789</td>
</tr>
<tr>
<td>12356789</td><td>12356789</td><td>12356789</td>
</tr>
<tr>
<td>12356789</td><td>12356789</td><td>12356789</td>
</tr>
<tr>
<td>12356789</td><td>12356789</td><td>12356789</td>
</tr>
<tr>
<td>12356789</td><td>12356789</td><td>12356789</td>
</tr>
<tr>
<td>12356789</td><td>12356789</td><td>12356789</td>
</tr>
</table>
(repeated 4 times)
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
(repeated 3 times)
<table>
<tr>
<td>12356789</td><td>12356789</td><td>12356789</td>
</tr>
<tr>
<td>12356789</td><td>12356789</td><td>12356789</td>
</tr>
<tr>
<td>12356789</td><td>12356789</td><td>12356789</td>
</tr>
<tr>
<td>12356789</td><td>12356789</td><td>12356789</td>
</tr>
<tr>
<td>12356789</td><td>12356789</td><td>12356789</td>
</tr>
<tr>
<td>12356789</td><td>12356789</td><td>12356789</td>
</tr>
</table>
(repeated once more)
</div>
<div>
<h1>Chapter 2</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
</body>
(The forum's code blocks appear to be eating my class="chapter" attributes in the div tags.)
The tables end up at the top of the next chapter instead of getting new pages. Is there any way to prevent this and get Prince to add new pages before the next chapter?
Thanks,
Andrew