CSS break-before Property
The break-before property controls whether a page, column, or region break is allowed, avoided, or forced immediately before an element.
It is useful when content must begin in a particular fragment, such as starting a chapter on a new printed page or moving a section to the next column in a multi-column layout.
The property affects fragmented layouts rather than ordinary continuous page flow. Its behavior depends on the available fragmentation context and the browser's support for the selected value.
break-before Syntax
Use break-before to control fragmentation immediately before a selected element.
selector {
break-before: page;
}
The general syntax is:
selector {
break-before: auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region;
}
Automatic Breaks
.section {
break-before: auto;
}
Force a Page Break
.chapter {
break-before: page;
}
Avoid a Page Break
.section {
break-before: avoid-page;
}
Force a Column Break
.column-section {
break-before: column;
}
Avoid a Column Break
.column-section {
break-before: avoid-column;
}
CSS-Wide Keywords
.inherited {
break-before: inherit;
}
.reset {
break-before: initial;
}
.unset {
break-before: unset;
}
.reverted {
break-before: revert;
}
.layer-reverted {
break-before: revert-layer;
}
Only one break-control keyword or one CSS-wide keyword is allowed in each declaration.
Property Values
The break-before property accepts values that allow, discourage, or force breaks before an element.
| Value | Description |
|---|---|
auto |
Allows the browser to determine whether a break occurs. This is the initial value. |
avoid |
Requests that breaks be avoided before the element. |
always |
Forces a break 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 before the element. |
page |
Forces a page break before the element. |
left |
Forces a page break so the element begins on a left page. |
right |
Forces a page break so the element begins on a right page. |
recto |
Forces the element to begin on a recto page. |
verso |
Forces the element to begin on a verso page. |
avoid-column |
Requests that a column break be avoided before the element. |
column |
Forces a column break before the element. |
avoid-region |
Requests that a region break be avoided before the element. |
region |
Forces a region break before the element. |
Not all values are implemented consistently. Region-related values and advanced page-side controls have limited support in mainstream browsers.
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 controls break opportunities before an element. It does not add ordinary spacing or directly change the element's width or height.
How It Works
The browser divides content into fragments when it flows across printed pages, columns, or other supported fragmentation containers.
Step 1: Create Two Sections
<section>
<h2>Chapter One</h2>
<p>Content for the first chapter.</p>
</section>
<section class="new-chapter">
<h2>Chapter Two</h2>
<p>Content for the second chapter.</p>
</section>
Step 2: Force a Break Before the Second Section
.new-chapter {
break-before: page;
}
When the content is printed, the second chapter is directed to begin on a new page.
Step 3: Apply the Rule Only When Printing
@media print {
.new-chapter {
break-before: page;
}
}
The rule no longer affects other media contexts.
Step 4: Avoid a Break Before an Element
@media print {
.continuation {
break-before: avoid-page;
}
}
The browser attempts to keep the element with the content immediately preceding it.
Step 5: Use a Column Break
.article {
column-count: 2;
}
.new-column {
break-before: column;
}
Within a supporting multi-column layout, the element begins in another column.
Break behavior is determined by the selected value, available space, neighboring break rules, and the active fragmentation context.
Automatic Breaks
The auto value leaves break decisions to the browser.
.section {
break-before: auto;
}
Automatic Page Breaks
@media print {
.section {
break-before: auto;
}
}
The browser may begin a section on another page when the available space requires it.
Automatic Column Breaks
.article {
column-count: 3;
}
.article-section {
break-before: auto;
}
The browser determines how content is distributed among the columns.
Remove a Forced Break
.chapter {
break-before: page;
}
.chapter.continuous {
break-before: auto;
}
The second declaration removes the forced break for chapters with the continuous class.
Default Behavior
Because auto is the initial value, an explicit declaration is unnecessary unless it overrides another rule.
The auto value does not prevent breaks. It allows fragmentation to occur according to normal layout rules.
Forced Breaks
Forced break values request that an element begin in a new fragmentation container.
Force a Page Break
.chapter {
break-before: page;
}
Force a Column Break
.section {
break-before: column;
}
Force a Generic Break
.section {
break-before: always;
}
The always value requests a break in the nearest applicable fragmentation context.
Force Breaks Across Fragmentation Contexts
.section {
break-before: all;
}
The all value is intended to force breaks through all applicable fragmentation contexts.
Print-Only Forced Break
@media print {
.chapter {
break-before: page;
}
}
For a specific printed-page break, page is clearer than always.
Forced Break Priority
Forced breaks generally take precedence over requests to avoid breaks at the same boundary.
Use forced breaks when the document structure requires a definite division rather than relying on automatic fragmentation.
Avoiding Breaks
Avoidance values request that an element remain in the same fragment as preceding content.
Avoid a Break
.section {
break-before: avoid;
}
Avoid a Page Break
@media print {
.continuation {
break-before: avoid-page;
}
}
Avoid a Column Break
.article .continuation {
break-before: avoid-column;
}
Avoid a Region Break
.section {
break-before: avoid-region;
}
Region-related break values are not dependable in modern mainstream browsers.
Keep Related Content Together
<p>This paragraph introduces the example.</p>
<div class="example-content">
<p>The related example follows.</p>
</div>
@media print {
.example-content {
break-before: avoid-page;
}
}
The browser attempts to avoid placing the example at the beginning of a new page when it can remain with the preceding paragraph.
Avoidance Is Not Guaranteed
If insufficient space is available or a forced break takes priority, the browser may still insert a break.
Use avoidance values to express layout preferences rather than to guarantee that content will always remain together.
Page Breaks
Page break values are particularly useful when printing structured documents.
New Page Before a Chapter
@media print {
.chapter {
break-before: page;
}
}
New Page Before an Appendix
@media print {
.appendix {
break-before: page;
}
}
New Page Before a Report Section
@media print {
.report-section {
break-before: page;
}
}
Avoid a Page Break Before a Continuation
@media print {
.continuation {
break-before: avoid-page;
}
}
Selective Page Break
@media print {
.new-page {
break-before: page;
}
}
<section>
<h2>Introduction</h2>
<p>Introduction content.</p>
</section>
<section class="new-page">
<h2>Main Report</h2>
<p>This section starts on a new printed page.</p>
</section>
Print Preview
Use Print Preview to verify where the browser places the page break. The final layout can vary according to paper size, margins, and the selected print engine.
Page break rules are useful for reports, books, manuals, invoices, and other printable documents.
Left and Right Pages
The left and right values control the page side on which an element begins.
Begin on a Left Page
@media print {
.chapter {
break-before: left;
}
}
The chapter is directed to begin on a left-hand page.
Begin on a Right Page
@media print {
.chapter {
break-before: right;
}
}
The chapter is directed to begin on a right-hand page.
Book Chapter Example
@media print {
.book-chapter {
break-before: right;
}
}
This can be useful for publications that require chapters to begin on right-hand pages.
Additional Blank Pages
A paged-media formatter may need to insert a blank page to satisfy the requested page side.
Browser Support
Page-side break behavior is not consistently supported across all browsers and print engines.
Test the generated print or PDF output before relying on left or right for publication layout.
Recto and Verso Pages
The recto and verso values control which side of a printed leaf receives an element.
Begin on a Recto Page
@media print {
.chapter {
break-before: recto;
}
}
The chapter is directed to begin on the recto side.
Begin on a Verso Page
@media print {
.chapter {
break-before: verso;
}
}
The chapter is directed to begin on the verso side.
Recto vs. Right
Recto and verso describe the front and back sides of a leaf, while left and right describe positions in a page spread.
In a typical left-to-right book, recto pages are right-hand pages and verso pages are left-hand pages. This relationship can differ with page progression direction.
Publication Example
@media print {
.new-part {
break-before: recto;
}
}
This requests that each new part begin on a recto page.
Implementation Limitations
These values are intended for paged-media systems and have limited browser support. They are more relevant to specialized publishing workflows than ordinary web pages.
Column Breaks
The column value forces an element to begin in a new column within a multi-column layout.
Two-Column Layout
.article {
column-count: 2;
column-gap: 30px;
}
.new-column {
break-before: column;
}
HTML Example
<div class="article">
<section>
<h2>First Section</h2>
<p>Content in the first column.</p>
</section>
<section class="new-column">
<h2>Second Section</h2>
<p>Content begins in the next column.</p>
</section>
</div>
Avoid a Column Break
.article .continuation {
break-before: avoid-column;
}
Three-Column Layout
.article {
column-count: 3;
column-gap: 24px;
}
.article .new-column {
break-before: column;
}
Column Break Before a Heading
.article h2.new-section {
break-before: column;
}
This starts the selected heading in another column.
Column Break Limitations
A column break only has the intended effect within an applicable multi-column fragmentation context. It does not create columns in an ordinary block layout.
The browser may generate additional columns as needed to accommodate forced breaks and content.
Region Breaks
Region-related values were designed for content flowing through a sequence of CSS regions.
Force a Region Break
.section {
break-before: region;
}
Avoid a Region Break
.section {
break-before: avoid-region;
}
Intended Behavior
The region value requests that an element begin in the next region, while avoid-region requests that a region break not occur immediately before it.
Current Practical Use
CSS Regions are not implemented as a standard, interoperable feature in modern mainstream browsers.
For typical website layouts, use supported technologies such as CSS Grid, Flexbox, or multi-column layout instead. These alternatives do not provide identical region-flow behavior.
Break Priority and Conflicts
Break rules on neighboring elements and their containers can affect the same fragmentation boundary.
Properties That Influence a Boundary
break-afteron the preceding element.break-beforeon the following element.break-insideon an applicable containing element.
Forced Break vs. Avoidance
.first {
break-after: avoid-page;
}
.second {
break-before: page;
}
The forced page break takes precedence over the request to avoid a page break.
Conflicting Forced Breaks
.first {
break-after: column;
}
.second {
break-before: page;
}
At a boundary where both declarations apply, the later element's break-before value takes precedence over the earlier element's break-after value.
Avoidance on Both Sides
.first {
break-after: avoid-page;
}
.second {
break-before: avoid-page;
}
Both declarations request that a page break be avoided between the elements.
Insufficient Space
If content cannot fit within the current fragment, the browser may need to relax avoidance restrictions and introduce a break.
Forced Break Precedence
When multiple forced break values apply at the same boundary, the precedence order is break-before, then break-after, then break-inside, subject to the applicable fragmentation rules.
Use clear, consistent break rules to reduce conflicts and make printed or multi-column layouts easier to maintain.
Related Break Properties
Three primary properties control breaks before, after, and within elements.
| 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;
}
The chapter begins on a new printed page.
break-after
.chapter {
break-after: page;
}
Content following the chapter begins on a new printed page.
break-inside
.figure {
break-inside: avoid;
}
The browser attempts to keep the figure within a single fragment.
Combined Print Example
@media print {
.chapter {
break-before: page;
}
.chapter-heading {
break-after: avoid-page;
}
figure {
break-inside: avoid;
}
}
This combination starts chapters on new pages, discourages breaks immediately after chapter headings, and attempts to keep figures together.
Legacy page-break-before
The older page-break-before property was used to control page breaks in printed documents.
Legacy Syntax
.chapter {
page-break-before: always;
}
Modern Equivalent
.chapter {
break-before: page;
}
Compatibility Example
@media print {
.chapter {
page-break-before: always;
break-before: page;
}
}
The older declaration provides a fallback for legacy print engines, while the newer declaration uses the current CSS fragmentation property.
Legacy Value Mapping
| page-break-before | break-before |
|---|---|
auto |
auto |
always |
page |
avoid |
avoid-page for page-specific behavior |
left |
left |
right |
right |
Important Difference
The legacy page-break-before: always specifically requests a page break. The modern break-before: always requests a break in the nearest applicable fragmentation context.
Use break-before: page when a printed page break is required.
Print Stylesheets
Print stylesheets allow page break rules to be applied without changing the ordinary screen layout.
Basic Print Rule
@media print {
.chapter {
break-before: page;
}
}
New Page Before an Appendix
@media print {
.appendix {
break-before: page;
}
}
Keep Headings with Following Content
@media print {
h2,
h3 {
break-after: avoid-page;
}
}
Keep Figures Together
@media print {
figure {
break-inside: avoid;
}
}
Complete Print Layout
@media print {
.chapter {
break-before: page;
}
.chapter-heading {
break-after: avoid-page;
}
.figure {
break-inside: avoid;
}
}
Page Margins
@page {
margin: 20mm;
}
The @page rule controls page-box settings such as margins, while break-before controls where content begins on a new page.
Testing Print Layouts
Use Print Preview to inspect the result. Paper size, margins, fonts, and browser printing behavior can affect page boundaries.
Print stylesheets are useful for reports, manuals, books, and other documents that require organized page divisions.
Multi-Column Layouts
The break-before property can direct content to begin in another column when a multi-column fragmentation context is active.
Basic Multi-Column Layout
.article {
column-count: 2;
column-gap: 30px;
}
Force a New Column
.article .new-column {
break-before: column;
}
Avoid a Column Break
.article .continuation {
break-before: avoid-column;
}
Avoid Splitting an Element
.article .card {
break-inside: avoid;
}
Combined Column Rules
.article {
columns: 3 200px;
column-gap: 24px;
}
.article .new-section {
break-before: column;
}
.article .continuation {
break-before: avoid-column;
}
.article .card {
break-inside: avoid;
}
Column Balancing
.article {
column-count: 3;
column-fill: balance;
}
Column balancing and forced breaks both influence how content is distributed.
Test the layout at different widths because available column space can change when the container is resized.
Nested Fragmentation
Nested fragmentation occurs when content is divided into fragments inside another fragmented layout, such as columns within printed pages.
Columns Inside Printed Pages
@media print {
.article {
column-count: 2;
}
.new-section {
break-before: column;
}
}
The column break applies within the multi-column context.
Generic Forced Break
.new-section {
break-before: always;
}
The always value requests a break in the nearest applicable fragmentation context.
Page-Specific Break
.new-section {
break-before: page;
}
The page value specifically requests a page break.
Break Across Applicable Contexts
.new-section {
break-before: all;
}
The all value is intended to force breaks through all applicable fragmentation contexts.
Implementation Differences
Nested fragmentation behavior varies between browser and print engines. Advanced forced break values may not produce identical results everywhere.
For predictable printed layouts, prefer simple page break rules and test combinations of page and column fragmentation carefully.
Practical Uses
The break-before property is useful for starting content in a particular page or column.
New Chapter Page
@media print {
.chapter {
break-before: page;
}
}
Report Section
@media print {
.report-section {
break-before: page;
}
}
Appendix
@media print {
.appendix {
break-before: page;
}
}
Book Chapter on a Right Page
@media print {
.book-chapter {
break-before: right;
}
}
Page-side behavior depends on the printing implementation.
Multi-Column Section
.article {
column-count: 2;
}
.article .new-section {
break-before: column;
}
Keep a Continuation with Previous Content
@media print {
.continuation {
break-before: avoid-page;
}
}
Print-Only Page Break Class
@media print {
.print-new-page {
break-before: page;
}
}
Legacy Print Compatibility
@media print {
.chapter {
page-break-before: always;
break-before: page;
}
}
Use the value that matches the desired fragmentation type, and avoid forcing breaks where normal content flow is sufficient.
break-before Example
The following example demonstrates how break-before: column starts the second section in a new column.
<div class="break-before-demo">
<section>
<h3>Section One</h3>
<p>This content appears in the first column.</p>
</section>
<section class="new-column">
<h3>Section Two</h3>
<p>This content begins in the next column.</p>
</section>
</div>
.break-before-demo {
columns: 2;
column-gap: 30px;
column-rule: 1px solid #cccccc;
}
.break-before-demo section {
padding: 10px;
background-color: #e8f3fb;
}
.break-before-demo .new-column {
break-before: column;
}
.break-before-demo h3 {
margin: 0 0 10px;
color: #1769aa;
}
.break-before-demo p {
margin: 0;
}
Section One
This content appears in the first column.
Section Two
This content begins in the next column.
The second section uses break-before: column, directing the browser to start it in another column.
To create a printed-page version, use break-before: page within an @media print rule.
Important Considerations
Keep the following points in mind when using break-before:
- Purpose: Controls fragmentation immediately before 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. - Avoidance:
avoidand related values discourage breaks at the selected boundary. - Page breaks: Most useful in print stylesheets and paginated documents.
- 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 support. - Generic always: Requests a break in the nearest applicable fragmentation context.
- all: Intended to force breaks through applicable nested fragmentation contexts.
- Break priority: Forced breaks generally take precedence over avoidance requests.
- Conflicting rules:
break-beforehas priority overbreak-afterwhen forced breaks conflict at the same boundary. - Insufficient space: Avoidance requests may be relaxed when content cannot fit.
- Related properties:
break-afterandbreak-insidealso control fragmentation. - Legacy compatibility:
page-break-beforemay still be useful for older print engines. - Normal screen layouts: The property does not create visible page breaks in ordinary continuous document flow.
- Animation: Changes between values are discrete.
- Testing: Verify behavior in the browsers and print engines used by your audience.
Use break-before when content must begin on a new page or column, and rely on automatic fragmentation when a forced break is unnecessary.
Browser Support
The break-before property has varying browser support depending on the selected value and fragmentation context.
Common page and column break values are supported in modern browsers, while advanced values such as all, recto, verso, and region-related controls have limited or inconsistent support.
@media print {
.chapter {
break-before: page;
}
}
This rule requests a new printed page before each matching chapter.
Legacy Print Compatibility
@media print {
.chapter {
page-break-before: always;
break-before: page;
}
}
The legacy property can help support older browser printing implementations.
For current compatibility details, visit Can I Use? and check the specific break behavior required by your layout.
Specifications
The break-before 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.
