CSS page-break-inside ιδιότητα
- previous-page page-break-before
- Επόμενη σελίδα paint-order
Definition and Usage
The page-break-inside property sets the page-breaking behavior within the element.
Although it is possible to force pagination with always, it cannot be guaranteed to avoid the insertion of pagination symbols, creators can at most request that the user agent try to avoid inserting pagination.
Applies To:Non-floating block-level elements with position value relative or static.
Note:Use pagination properties as little as possible and avoid using pagination properties in tables, floating elements, and bordered block elements.
See Also:
HTML DOM Reference Manual:pageBreakInside Property
Example
Sets the pagination behavior to avoid pagination within the table element:
<html> <head> <style> @media print { table {page-break-inside:avoid;} } </style> </head> <body> .... </body> </html>
CSS Syntax
page-break-inside: auto|avoid|initial|inherit;
Attribute Value
Value | Description |
---|---|
auto | Default. Insert page breaks within the element if necessary. |
avoid | Avoid inserting page breaks within the element. |
inherit | Specifies that the page-break-inside property should be inherited from the parent element. |
Technical Details
Default Value: | auto |
---|---|
Inheritance: | no |
Version: | CSS2 |
JavaScript Syntax: | object.style.pageBreakInside="avoid" |
Browser Support
The numbers in the table indicate the first browser version that fully supports this attribute.
Chrome | IE / Edge | Firefox | Safari | Opera |
---|---|---|---|---|
1.0 | 8.0 | 19.0 | 1.3 | 7.0 |
- previous-page page-break-before
- Επόμενη σελίδα paint-order