CSS break-after Property
The break-after property controls whether a page, column, or region break is allowed, avoided, or forced immediately after an element.
It is used in fragmented layouts, including printed documents and multi-column content. For example, you can force the next section to begin on a new printed page or start a new column after a particular element.
The effect depends on the layout's fragmentation context. Page-related values are primarily useful when printing, while column-related values apply to multi-column layouts.
break-after Syntax
Use break-after to specify the desired break behavior immediately after an element.
selector {
break-after: auto;
}
The general syntax is:
selector {
break-after: auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region;
}
Automatic Breaks
.section {
break-after: auto;
}
Force a Page Break
.chapter {
break-after: page;
}
Avoid a Page Break
.section {
break-after: avoid-page;
}
Force a Column Break
.column-section {
break-after: column;
}
Avoid a Column Break
.column-section {
break-after: avoid-column;
}
CSS-Wide Keywords
.inherited {
break-after: inherit;
}
.reset {
break-after: initial;
}
.unset {
break-after: unset;
}
.reverted {
break-after: revert;
}
.layer-reverted {
break-after: revert-layer;
}
The property accepts one break-control keyword or one CSS-wide keyword per declaration.
Property Values
The available values control automatic, forced, and avoided breaks in different fragmentation contexts.
| Value | Description |
|---|---|
auto |
Allows the browser to determine whether a break occurs. This is the initial value. |
avoid |
Requests that breaks be avoided after the element. |
always |
Forces a break after the element in the nearest applicable fragmentation context. |
all |
Forces breaks through all applicable fragmentation contexts at that point. |
avoid-page |
Requests that a page break be avoided after the element. |
page |
Forces a page break after the element. |
left |
Forces a page break so the following content begins on a left page. |
right |
Forces a page break so the following content begins on a right page. |
recto |
Forces a break to the recto side of a page spread. |
verso |
Forces a break to the verso side of a page spread. |
avoid-column |
Requests that a column break be avoided after the element. |
column |
Forces a column break after the element. |
avoid-region |
Requests that a region break be avoided after the element. |
region |
Forces a region break after the element. |
Some values, particularly those involving regions, page spreads, and nested fragmentation, have limited or inconsistent browser support.
CSS-Wide Keywords
| Value | Description |
|---|---|
inherit |
Uses the computed value from the parent element. |
initial |
Resets the property to auto. |
unset |
Resets the property to auto because it is not inherited. |
revert |
Reverts the property according to cascade origin rules. |
revert-layer |
Reverts the property according to cascade layer rules. |
Property Characteristics
| Characteristic | Value |
|---|---|
| Initial value | auto |
| Inherited | No |
| Applies to | Block-level boxes in normal flow, grid items, flex items, and applicable fragmentation contexts |
| Computed value | Specified keyword |
| Animation type | Discrete |
| Percentages | Not applicable |
| Primary use | Printed pages and multi-column layouts |
The property does not add spacing or change an element's dimensions. It influences where content is divided across fragmentation containers.
How It Works
Fragmentation occurs when content must be divided into separate pages, columns, or other supported containers.
Step 1: Create Sections
<section class="chapter">
<h2>Chapter One</h2>
<p>Chapter content goes here.</p>
</section>
<section>
<h2>Chapter Two</h2>
<p>More chapter content goes here.</p>
</section>
Step 2: Add a Break Rule
.chapter {
break-after: page;
}
When the document is printed, the next section is directed to begin on a new page.
Step 3: Limit the Rule to Print
@media print {
.chapter {
break-after: page;
}
}
The break rule now applies only when the print media query is active.
Step 4: Avoid an Unwanted Break
@media print {
.section-intro {
break-after: avoid-page;
}
}
The browser attempts to keep the following content on the same page as the element.
Step 5: Use a Column Break
.columns {
column-count: 2;
}
.column-ending {
break-after: column;
}
In a supporting multi-column layout, content following the marked element begins in another column.
The browser evaluates break rules alongside available space, neighboring elements, and other fragmentation constraints.
Automatic Breaks
The auto value allows the browser to decide whether a break is necessary.
.section {
break-after: auto;
}
Automatic Page Breaks
@media print {
.section {
break-after: auto;
}
}
The browser may break after the section when needed to fit content across printed pages.
Automatic Column Breaks
.article {
column-count: 3;
}
.article-section {
break-after: auto;
}
The browser distributes content among columns according to the available space and other column layout rules.
Resetting a Forced Break
.section {
break-after: page;
}
.section.no-break {
break-after: auto;
}
The second rule removes the forced break for elements with the no-break class.
The auto value does not prohibit breaks. It simply does not force or specifically discourage one.
Forced Breaks
Forced break values instruct the browser to start subsequent content in a new fragmentation container.
Force a Page Break
.chapter {
break-after: page;
}
Force a Column Break
.section {
break-after: column;
}
Force a Generic Break
.section {
break-after: always;
}
The always value requests a break in the nearest applicable fragmentation context, rather than necessarily forcing a printed page break.
Force Breaks Across Fragmentation Contexts
.section {
break-after: all;
}
The all value is intended to force breaks through applicable fragmentation contexts, including nested ones.
Print-Only Forced Break
@media print {
.chapter-end {
break-after: page;
}
}
For predictable printed page breaks, use page rather than relying on the generic always value.
Forced breaks generally take precedence over requests to avoid breaks at the same boundary.
Avoiding Breaks
Avoidance values request that the browser keep content together across a particular break boundary.
Avoid Any Applicable Break
.section-heading {
break-after: avoid;
}
Avoid a Page Break
@media print {
h2 {
break-after: avoid-page;
}
}
This requests that the heading remain on the same printed page as the content that follows it.
Avoid a Column Break
.columns h3 {
break-after: avoid-column;
}
Avoid a Region Break
.section {
break-after: avoid-region;
}
Region-related break controls have limited practical browser support.
Heading and Paragraph
<h2 class="section-heading">Section Title</h2>
<p>The section begins with this paragraph.</p>
@media print {
.section-heading {
break-after: avoid-page;
}
}
The browser attempts to keep the heading with the paragraph that follows it.
Avoidance is not an absolute guarantee. The browser may still need to break when content cannot fit or a higher-priority forced break applies.
Page Breaks
Page break values control how content is divided when a document is printed or displayed in a paginated context.
New Page After a Chapter
@media print {
.chapter {
break-after: page;
}
}
New Page After a Cover
@media print {
.cover-page {
break-after: page;
}
}
New Page After a Table of Contents
@media print {
.table-of-contents {
break-after: page;
}
}
Avoid a Break After a Heading
@media print {
h2,
h3 {
break-after: avoid-page;
}
}
Conditional Page Break
@media print {
.page-break-after {
break-after: page;
}
}
<section class="page-break-after">
<h2>First Section</h2>
<p>Content for the first section.</p>
</section>
<section>
<h2>Second Section</h2>
<p>This section starts on another printed page.</p>
</section>
Page breaks are most useful in print stylesheets where the content must follow a particular document structure.
Left and Right Pages
The left and right values control which side of a page spread receives the following content.
Start on a Left Page
@media print {
.section {
break-after: left;
}
}
The following content is directed to begin on a left page.
Start on a Right Page
@media print {
.section {
break-after: right;
}
}
The following content is directed to begin on a right page.
Chapter Layout
@media print {
.chapter-end {
break-after: right;
}
}
This can be useful when a publication requires each new chapter to begin on a right-hand page.
Blank Pages
A browser or paged-media formatter may need to insert an additional page to satisfy a left-page or right-page requirement.
Support for page-side controls varies across browsers and printing environments. Test the actual printed or PDF output before relying on these values.
Recto and Verso Pages
The recto and verso values describe the front and back sides of pages in a paged publication.
Recto Page
@media print {
.chapter-end {
break-after: recto;
}
}
The following content is directed to begin on a recto page.
Verso Page
@media print {
.chapter-end {
break-after: verso;
}
}
The following content is directed to begin on a verso page.
Difference from Left and Right
Recto and verso describe the front and back sides of a leaf, while left and right describe positions within a page spread.
In left-to-right books, recto pages are typically right-hand pages and verso pages are typically left-hand pages. Page progression direction can affect this relationship.
Printed Publication Example
@media print {
.book-chapter {
break-after: recto;
}
}
These values are intended for paged-media systems. Browser support is limited, so they should not be relied upon without testing the target output.
Column Breaks
The column value forces content after an element into a new column in a multi-column layout.
Two-Column Layout
.article {
column-count: 2;
column-gap: 30px;
}
.column-end {
break-after: column;
}
HTML Example
<div class="article">
<section class="column-end">
<h2>First Section</h2>
<p>Content in the first section.</p>
</section>
<section>
<h2>Second Section</h2>
<p>Content begins in the next column.</p>
</section>
</div>
Avoid a Column Break
.article h3 {
break-after: avoid-column;
}
Force a Column Break After a Heading Group
.column-heading-group {
break-after: column;
}
Column Breaks with Three Columns
.article {
column-count: 3;
column-gap: 24px;
}
.section-end {
break-after: column;
}
A forced column break moves subsequent content to another column. Depending on available space and the fragmentation context, additional columns may be generated.
Column breaks require an applicable multi-column context. They do not create ordinary columns in a layout that has no column fragmentation.
Region Breaks
Region break values were designed for layouts that flow content through a sequence of CSS regions.
Force a Region Break
.section {
break-after: region;
}
Avoid a Region Break
.section {
break-after: avoid-region;
}
Intended Behavior
The region value requests that subsequent content move to the next region. The avoid-region value requests that a region break not occur after the element.
Browser Support Limitations
CSS Regions are not supported as a standard, interoperable layout feature in modern mainstream browsers. These values should be treated as reference information rather than dependable production techniques.
For modern multi-area layouts, CSS Grid, Flexbox, and multi-column layout are generally more practical alternatives, although they do not reproduce CSS Regions behavior.
Break Priority and Conflicts
Several CSS properties can influence the same break boundary. The browser evaluates them together when deciding where fragmentation occurs.
Three Properties at a Boundary
A potential break between two elements may be affected by:
break-afteron the preceding element.break-beforeon the following element.break-insideon a containing element.
Forced Breaks Take Priority
.first {
break-after: page;
}
.second {
break-before: avoid-page;
}
The forced page break takes precedence over the request to avoid a page break.
Conflicting Forced Breaks
.first {
break-after: page;
}
.second {
break-before: column;
}
When forced break values conflict at the same boundary, the later element's break-before value has precedence over the earlier element's break-after value, subject to the applicable fragmentation rules.
Avoidance Values
.first {
break-after: avoid-page;
}
.second {
break-before: avoid-page;
}
Both declarations request that a page break be avoided at the boundary.
Insufficient Space
When content cannot fit within the available fragment, the browser may need to relax avoidance restrictions and insert a break.
Forced breaks are stronger than avoidance requests, but the final result also depends on the fragmentation context and browser implementation.
Related Break Properties
Three primary CSS properties work together to control fragmentation.
| Property | Purpose |
|---|---|
break-before |
Controls breaks immediately before an element. |
break-after |
Controls breaks immediately after an element. |
break-inside |
Controls breaks within an element. |
break-before
.chapter {
break-before: page;
}
Starts the chapter on a new printed page.
break-after
.chapter {
break-after: page;
}
Starts content following the chapter on a new printed page.
break-inside
.figure {
break-inside: avoid;
}
Requests that the figure not be divided across fragments.
Combined Example
@media print {
.chapter {
break-before: page;
}
.chapter-heading {
break-after: avoid-page;
}
.figure {
break-inside: avoid;
}
}
These properties can be combined to control where chapters start, keep headings with following content, and reduce unwanted splitting of figures.
Legacy page-break-after
The older page-break-after property was used to control page breaks in printed documents.
Legacy Syntax
.chapter {
page-break-after: always;
}
Modern Equivalent
.chapter {
break-after: page;
}
Compatibility Example
@media print {
.chapter {
page-break-after: always;
break-after: page;
}
}
The legacy declaration provides a fallback for older printing implementations, while the modern declaration uses the current fragmentation property.
Legacy Value Mapping
| page-break-after | break-after |
|---|---|
auto |
auto |
always |
page |
avoid |
avoid-page for page-specific behavior |
left |
left |
right |
right |
Do not assume that break-after: always is identical to the legacy page-break-after: always. The modern always value applies to the nearest fragmentation context, while page specifically requests a page break.
Use break-after for new stylesheets and include the legacy property when required by the browsers or print engines you support.
Print Stylesheets
Print stylesheets allow page break rules to be applied without changing the normal on-screen layout.
Basic Print Rule
@media print {
.chapter-end {
break-after: page;
}
}
Separate Cover Page
@media print {
.cover {
break-after: page;
}
}
Keep Headings with Content
@media print {
h2,
h3 {
break-after: avoid-page;
}
}
Keep Figures Together
@media print {
figure {
break-inside: avoid;
}
}
Chapter Structure
@media print {
.chapter {
break-before: page;
}
.chapter-heading {
break-after: avoid-page;
}
.chapter-summary {
break-after: page;
}
}
Page Margins
@page {
margin: 20mm;
}
The @page rule controls page-box settings such as margins, while break-after controls fragmentation between elements.
Testing Print Output
Use your browser's Print Preview to inspect page boundaries. Different print engines may produce different results, especially with complex layouts and page-side break values.
Print stylesheets are useful for reports, invoices, manuals, and other documents that require controlled page divisions.
Multi-Column Layouts
In multi-column layouts, break-after can control where content moves from one column to another.
Basic Multi-Column Layout
.article {
column-count: 2;
column-gap: 30px;
}
Forced Column Break
.article .section-end {
break-after: column;
}
Avoid a Column Break
.article h3 {
break-after: avoid-column;
}
Avoid Splitting a Card
.article .card {
break-inside: avoid;
}
Combined Column Rules
.article {
columns: 3 200px;
column-gap: 24px;
}
.article h3 {
break-after: avoid-column;
}
.article .section-end {
break-after: column;
}
.article .card {
break-inside: avoid;
}
The browser attempts to honor these break rules while distributing content among columns.
Column Balancing
.article {
column-count: 3;
column-fill: balance;
}
Column balancing and forced breaks can affect the final column heights and content distribution.
Test multi-column layouts at different container widths because column counts, available space, and break positions may change.
Nested Fragmentation
Nested fragmentation occurs when one fragmented layout exists inside another, such as multi-column content inside a printed page.
Columns Inside a Printed Document
@media print {
.article {
column-count: 2;
}
.section-end {
break-after: column;
}
}
The column break applies within the multi-column context.
Generic Forced Break
.section-end {
break-after: always;
}
The always value requests a break in the nearest applicable fragmentation context.
Page-Specific Break
.section-end {
break-after: page;
}
The page value specifically requests a page break.
All Fragmentation Contexts
.section-end {
break-after: all;
}
The all value is intended to force breaks through all applicable fragmentation contexts.
Practical Limitations
Browser implementations vary in their handling of nested fragmentation, particularly when forced page and column breaks interact.
For reliable printed output, test nested layouts carefully and avoid unnecessary combinations of forced breaks.
Practical Uses
The break-after property is useful when printed pages or columns must follow a particular content structure.
Printed Report Sections
@media print {
.report-section {
break-after: page;
}
}
Cover Page
@media print {
.report-cover {
break-after: page;
}
}
Table of Contents
@media print {
.contents {
break-after: page;
}
}
Chapter Heading
@media print {
.chapter-heading {
break-after: avoid-page;
}
}
Multi-Column Article
.article {
column-count: 2;
}
.article .column-end {
break-after: column;
}
Column Heading
.article h3 {
break-after: avoid-column;
}
Printable Invoice
@media print {
.invoice-summary {
break-after: page;
}
}
Book Chapter
@media print {
.chapter-end {
break-after: right;
}
}
The last example is intended for paged publications where the next chapter must begin on a right-hand page. Browser support for this behavior varies.
Use forced breaks only where a deliberate page or column division improves the document's structure.
break-after Example
The following example demonstrates a forced column break after the first section of a multi-column layout.
<div class="break-after-demo">
<section class="first-section">
<h3>Section One</h3>
<p>This content appears in the first column.</p>
</section>
<section>
<h3>Section Two</h3>
<p>This content begins in the next column.</p>
</section>
</div>
.break-after-demo {
columns: 2;
column-gap: 30px;
column-rule: 1px solid #cccccc;
}
.break-after-demo section {
padding: 10px;
background-color: #e8f3fb;
}
.break-after-demo .first-section {
break-after: column;
}
.break-after-demo h3 {
margin: 0 0 10px;
color: #1769aa;
}
.break-after-demo p {
margin: 0;
}
Section One
This content appears in the first column.
Section Two
This content begins in the next column.
The break-after: column declaration forces the content following the first section into another column in browsers that support column breaks.
For a printed-page example, replace column with page and apply the rule within an @media print block.
Important Considerations
Keep the following points in mind when using break-after:
- Purpose: Controls fragmentation immediately after an element.
- Initial value:
auto. - Inheritance: The property is not inherited.
- Automatic breaks:
autoallows normal fragmentation decisions. - Forced breaks:
page,column, and other forced values request new fragments. - Avoided breaks:
avoidand related values request that breaks not occur at a boundary. - Page breaks: Most useful in print stylesheets and paginated layouts.
- Column breaks: Require an applicable multi-column fragmentation context.
- Region breaks: Not dependable in modern mainstream browsers.
- Page-side values:
left,right,recto, andversohave varying implementation support. - Generic always: Requests a break in the nearest applicable fragmentation context.
- all: Intended to force breaks across applicable nested fragmentation contexts.
- Break priority: Forced breaks generally take precedence over avoidance requests.
- Limited space: Browsers may relax avoidance rules when content cannot fit.
- Related properties:
break-beforeandbreak-insidealso influence fragmentation. - Legacy compatibility:
page-break-aftermay still be useful for older print engines. - Normal screen layouts: The property does not create visible page breaks in an ordinary continuous document.
- Animation: Changes between values are discrete.
- Testing: Verify print and column behavior in the target browsers.
Use break-after to control deliberate document divisions while allowing the browser to manage ordinary fragmentation wherever possible.
Browser Support
The break-after property has varying browser support depending on the value and fragmentation context.
Modern browsers support common page and column break behavior, but advanced values such as all, recto, verso, and region-related controls may have limited support.
@media print {
.chapter {
break-after: page;
}
}
This declaration requests a page break after each matching chapter when the document is printed.
Legacy Print Compatibility
@media print {
.chapter {
page-break-after: always;
break-after: page;
}
}
The legacy declaration can help with older printing implementations.
For current compatibility details, visit Can I Use? and search by the specific break feature you intend to use.
Specifications
The break-after property is defined in the CSS Fragmentation Module Level 3 specification.
CSS Fragmentation Module Level 3
The specification defines forced breaks, break avoidance, fragmentation boundaries, and how break-before, break-after, and break-inside interact.
