Copyright © tutorialspoint.com

CSS - page-break-after

previous next


Description:

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.

Possible Values:

Applies to:

All the block level elements

Example:

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.


previous next

Copyright © tutorialspoint.com