page-break-inside
Summary
Sets the page-breaking behavior inside an element. With CSS3, page-break-* properties are only aliases of the break-* properties. The CSS3 Fragmentation spec defines breaks for all CSS box fragmentation.
Overview table
- Applies to
- All elements
- Inherited
- No
- Media
- visual
- Animatable
- No
Syntax
page-break-inside: auto
page-break-inside: avoid
page-break-inside: empty string
page-break-inside: inherit
Values
- auto
- Default.
Neither force nor forbid a page break inside the object.
- avoid
- Forbid a page break inside the object, if possible.
- empty string
- Behaves the same as auto.
- inherit
- Inherit the value of the same property for the object’s parent.
Related specifications
- CSS Fragmentation Module Level 3, 3.3. Page Break Aliases: the ‘page-break-before’, ‘page-break-after’, and ‘page-break-inside’ properties
- W3C Working Draft
- CSS Paged Media Module Level 3, 9. Page Breaks
- W3C Working Draft
- CSS Level 2 (Revision 1), 13.3.1 Page break properties: 'page-break-before’, 'page-break-after’, ‘page-break-inside’
- W3C Recommendation
See also
Related pages
- CSSStyleDeclarationCSSStyleDeclaration
- currentStylecurrentStyle
- runtimeStyleruntimeStyle
- stylestyle
CSS How-to - Optimize Pages for Printing Using CSS
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]