HTML page break solution for webkit report in OpenERP
table {
page-break-inside:auto
}
table tr {
page-break-inside:avoid; page-break-after:auto;
}
Eg:
Applied this code in your CSS File or inside the <style> tag.
table {
page-break-inside:auto
}
table tr {
page-break-inside:avoid; page-break-after:auto;
}
Eg:
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Test</title>
<style type="text/css">
table { page-break-inside:auto }
tr { page-break-inside:avoid; page-break-after:auto }
thead { display:table-header-group }
tfoot { display:table-footer-group }
</style>
</head>
<body>
<table>
<thead>
<tr><th>heading</th></tr>
</thead>
<tfoot>
<tr><td>notes</td></tr>
</tfoot>
<tr>
<td>x</td>
</tr>
<tr>
<td>x</td>
</tr>
<!-- Number ofrows -->
<tr>
<td>x</td>
</tr>
</tbody>
</table>
</body>
</html>
Applied this code in your CSS File or inside the <style> tag.
No comments:
Post a Comment