Set up plicing behavior within table elements to avoid plicing:
<html>
<head>
<style>
@media print
{
table {page-break-inside:avoid;
}
}
</style>
</head>
<body>
....
</body>
</html>
Browser support
Only Opera browsers support page-break-inside properties.
Definitions and usages
The page-break-inside property sets the page-break behavior inside the element.
Although you can force a page break on with always, there is no guarantee that page break insertion will be avoided, and author users can only ask the user agent to avoid inserting page breaks as much as possible.
Apply to: a non-floating block-level element with a position value of relative or static.
Note: Use plicing properties as little as possible, and avoid using plicing properties in tables, floating elements, block elements with borders.
Default: | auto |
---|---|
Inheritance: | no |
Version: | CSS2 |
JavaScript syntax: | object .style.pageBreakInside="avoid" |
Possible values
Value | Describe |
---|---|
auto | Default. Insert page breaks inside the element if necessary. |
avoid | Avoid inserting page breaks inside elements. |
inherit | Specifies that the settings of the page-break-inside property should be inherited from the parent element. |
Related pages
HTML DOM Reference Manual: PageBreakInside Properties