Thanks for the reply Sean! Greatly appreciated!
Here are the CSS classes I've created and tried testing with:
div.overhead {
page-break-before: auto;
page-break-after: auto;
}
pre.pagebreak {
page-break-inside: avoid;
}
I've tried all permutations of these classes within an ASP file, especially around a simple HTML table as shown below, (not built using CSS) to make sure it didn't break over 2 pages because of the content.
Here's an example of the type of simple table I'm talking about. I didn't insert my full page code content as it's quite lengthy. Keep in mind that the ASP code you see within the brackets are calling content from a database. If you want to test at your end, you'll have to replace the ASP code with plain text. The table example:
<table width="80%" class="tableborder" cellpadding="5" align="center">
<tr>
<td><%XLAT "f20_16_a_044"%>
<ol>
<li><%XLAT "f20_16_a_045"%><br><span class="en"><%XLAT "f20_16_a_046"%></span><br
<ul>
<li><%XLAT "f20_16_a_047"%><br><%XLAT
<li><%XLAT "f20_16_a_050"%><br><%XLAT
<li><%XLAT "f20_16_a_052"%><br><%XLAT
<li><%XLAT "f20_16_a_054"%><br><%XLAT
</ul>
</li>
<li><%XLAT "f20_16_a_056"%><br><%XLAT
</ol></td>
</tr>
</table>
It's as simple as that, and when I insert my CSS attributes either using the div tag or the pre tag for print formatting purposes, it results in what I explained in my original post.
Thanks again for your help!
Main Topics
Browse All Topics





by: seanpowellPosted on 2004-09-03 at 10:31:44ID: 11975190
You may be doing nothing wrong, CSS Print and HTML tables are about as compatible as oil and water.
It would help greatly if I could see your source code.
Thanks,
Sean