Page breaks
In printed page layouts, the break-after, break-before, break-inside CSS properties control where printed pages start and end. Also known as pagination or page breaking.
Overview
In printed page layouts, the break-after, break-before, break-inside CSS properties control where printed pages start and end. Also known as pagination or page breaking.
Browser support
| Feature | Desktop | Mobile | ||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Safari | Chrome Android | Safari iOS | |
| 50 | 12 | 65 | 10 | 50 | 10 | |
always Experimental | | | 65 | | | |
auto | 50 | 79 | 65 | 10 | 50 | 10 |
avoid | 50 | 79 | | | 50 | |
avoid-page | 50 | 79 | | 10 | 50 | 10 |
left | 50 | 79 | 65 | 10 | 50 | 10 |
page | 50 | 79 | 65 | 10 | 50 | 10 |
paged context Supported in Paged Media | 50 | 12 | 65 | 10 | 50 | 10 |
paged context.avoid-page | 50 | 12 | | 10 | 50 | 10 |
paged context.page | 50 | 12 | 65 | 10 | 50 | 10 |
paged context.recto `recto` and `verso` | | | | | | |
recto | 50 | 79 | | 10 | 50 | 10 |
right | 50 | 79 | 65 | 10 | 50 | 10 |
verso | 50 | 79 | | 10 | 50 | 10 |
| Other | ||||||
| The break-before CSS property sets how page, column, or region breaks should behave before a generated box. If there is no generated box, the property is ignored. | 50 | 12 | 65 | 10 | 50 | 10 |
| CSS property | ||||||
always Experimental | | | 65 | | | |
auto | 50 | 79 | 65 | 10 | 50 | 10 |
avoid | 50 | 79 | | | 50 | |
avoid-page | 50 | 79 | | 10 | 50 | 10 |
left | 50 | 79 | 65 | 10 | 50 | 10 |
page | 50 | 79 | 65 | 10 | 50 | 10 |
paged context Supported in Paged Media | 50 | 12 | 65 | 10 | 50 | 10 |
paged context.page `page` and `avoid-page` | 50 | 12 | 65 | 10 | 50 | 10 |
paged context.recto `recto` and `verso` | | | | | | |
recto | 50 | 79 | | 10 | 50 | 10 |
right | 50 | 79 | 65 | 10 | 50 | 10 |
verso | 50 | 79 | | 10 | 50 | 10 |
| Other | ||||||
| The break-inside CSS property sets how page, column, or region breaks should behave inside a generated box. If there is no generated box, the property is ignored. | 50 | 12 | 65 | 10 | 50 | 10 |
| CSS property | ||||||
auto | 50 | 79 | 65 | 10 | 50 | 10 |
avoid | 50 | 79 | 65 | 10 | 50 | 10 |
avoid-page | 50 | 79 | 92 | 10 | 50 | 10 |
paged context Supported in Paged Media | 50 | 12 | 65 | 10 | 50 | 10 |
paged context.avoid-page | 51 | 12 | 92 | | 51 | |
- The value is recognized, but has no effect. See bug 1972340.
- The value is recognized, but has no effect. See bug 294559.
- The value is recognized, but has no effect. See bug 294559.
- The value is recognized, but has no effect. See bug 1972340.
- The value is recognized, but has no effect. See bug 294559.
- The value is recognized, but has no effect. See bug 294559.
Syntax
h2 {
break-before: page;
}
.keep-together {
break-inside: avoid;
} Live demo
Use cases
Using Page breaks
In printed page layouts, the break-after, break-before, break-inside CSS properties control where printed pages start and end. Also known as pagination or page breaking.
Cautions
- May not be supported in older browsers.
Accessibility
- Make sure visual changes are conveyed appropriately to assistive technology.
Related links
Powered by web-features