Second, I resolved the problem creating a div container but didn’t try a fixed position.
Here is the solution that worked well in my case and perhaps it can help someone.
<style>
.container {
margin-left: auto !important;
margin-right: auto !important;
margin-top: 5px !important;
margin-bottom: 0px !important;
width: 710px;
height: 85% !important;
background-color: #ffffff;
border: 3px black solid;
float: auto;
}
</style>
All My DIVs:
<div class="Section1" style="page-break-inside:avoid;”> (This stopped breaking the table in the middle)
<img src="../../images/RH-Header-pdf.jpg" alt="" border="0" align="center”> (header Image)
<!-- start of body table -->
<div class="container”> (Border conteiner)
(MYSQL TABLE CONTENT GOES HERE)
<div class="clearfooter"></div>
</div> (Close container)
<!-- end of body table -->
<div class="footer" align="left" colspan="3" valign="bottom" style="font-family: 'pfd comp pro'; font-size: 10pt !important;
padding: 0px 0px 0px 12px;"><!-- start of footer --> [FOOTER] <!-- endof footer --></div> (Footer outside of the data container)
</div> (closes main Section1 div where the page suppose to break)
Question: How do I to break the page, loading an empty body table + header + footer code in the next page?
In other words, how can start a new empty page when the amount of data riches the stablished page and/or table height?
Many thanks,
Paulo Lopes