Copyright © tutorialspoint.com

CSS - page-break-before

previous next


Advertisements

Description:

The page-break-before property indicates whether (and how many) page breaks should be allowed before 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-after for a preceding 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-before: right;}
table {page-break-before: always;}
-->
</style>

For more detail please look into CSS Paged Media.


previous next

Copyright © tutorialspoint.com