Copyright © tutorialspoint.com

CSS - page-break-inside

previous next


Description:

The page-break-inside property indicates whether page breaks should be allowed within 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 values of page-break-before and page-break-after for any descendant elements.

Possible Values:

Applies to:

All the block level elements

Example:

Here is the example:

<style tyle="text/css">
<!--
ul, ol {page-break-inside: avoid;}
table {page-break-inside: avoid;}
p {page-break-inside: auto;}
-->
</style>

For more detail please look into CSS Paged Media.


previous next

Copyright © tutorialspoint.com