Copyright © tutorialspoint.com
The page-break-after property indicates whether (and how many) page breaks should be allowed after an element's box.
The value of this property is not the sole factor in determining whether a page break should follow the element. This decision will also be affected by the value of page-break-before for a following element, and the value of page-break-inside for any ancestor elements.
All the block level elements
Here is the example:
<style tyle="text/css"> <!-- h1 {page-break-after: avoid;} div.summary {page-break-after: always;} --> </style> |
For more detail please look into CSS Paged Media.
Copyright © tutorialspoint.com