Home CSS Properties page-break-after CSS page-break-after Property Definition
Definition and Usage The page-break-after property adjusts page breaks after the current element in print and other paged media. It applies to block-level elements that generate a box.
It is not inherited. The initial value is auto. Pair it with page-break-before and page-break-inside for older print stylesheets.
Deprecated Prefer break-afterpage-break-after is a legacy alias. Use break-after in new CSS. Note: always maps to break-after: page.
Syntax
CSS Syntax page-break-after: auto | always | avoid | left | right | initial | inherit ;
Some engines also recognize recto and verso. Start with auto, always, and avoid.
Values
Property Values Value Description Try it autoDefault. Neither forces nor forbids a break Try italwaysAlways force a page break after the element Try itavoidAvoid a page break right after the element Try itleft / rightForce a break so the next page is a left or right page Try itinitialResets to auto Try itinheritTakes the parent’s page-break-after Try it
Approach
How to Use page-break-after Use it only for print styles you maintain, or migrate the rule to break-after.
Pick the block that should end a printed page (often a heading or section end). Set page-break-after: always to force the next content onto a new page. Check the result in Print Preview (Ctrl+P / Cmd+P). For new CSS, rewrite as break-after: page . Piece Required? Role Block-level element Yes Must generate a box Paged media Yes (to see it) Print Preview or printed output Keyword Yes always, avoid, auto, and othersModern replacement Recommended break-after: page instead of always
Try it
Live Preview Screen layout cannot show real print pages. This demo simulates a forced break after the marked block when you choose always, left, or right.
Code
CSS Examples Each snippet focuses on page-break-after. Confirm with Print Preview. Use Try It Yourself for a live editor.
1. Always 2. Avoid 3. Auto Example 1 — Force a Page Break Start the next section on a new printed page after each chapter heading.
<style>
h1 {
page-break-after: always;
}
</style>
<h1>Chapter 1</h1>
<p>Ends this printed page.</p>
<h1>Chapter 2</h1> Chapter 1
page break
Chapter 2 starts on the next printed page
Simulation only. Open Print Preview in the try-it editor to see a real break.
How It Works Mark the heading. Each h1 gets page-break-after: always.Force the break. Content after that heading starts on a new printed page.Alias map. Browsers treat this like break-after: page.Verify in print. Screen layout usually will not show the split.Example 2 — Avoid a Break Ask the browser not to put a page break right after a heading.
<style>
h2 {
page-break-after: avoid;
}
</style>
<h2>Heading</h2>
<p>Keep this with the heading when possible.</p> Heading
Keep this with the heading when possible.
avoid is a soft request. A forced break nearby can still win.
How It Works Mark the box. The heading gets avoid.Soft request. The browser tries not to break immediately after it.Forced values win. A nearby always can still create a break.Modern twin. Prefer break-after: avoid in new CSS.Example 3 — Default Auto Leave break decisions to the print layout engine.
<style>
p {
page-break-after: auto;
}
</style>
<p>Break only if the page needs one.</p> Break only if the page needs one.
auto is the default. No forced break is added.
How It Works Use the default. auto neither forces nor forbids a break.Layout decides. The printer may still break after long content.Reset tool. Useful after clearing a previous always rule.Same as initial. initial also resolves to auto. Edge Cases & Pitfalls If nothing seems to break, one of these is usually why.
print Page breaks need print media Check Print Preview. Normal screen layout usually ignores the visual page split.
legacy always is not modern alwaysAs an alias, page-break-after: always maps to break-after: page , not the broader Level 4 always keyword.
block Needs a generated block box The property applies to block-level elements. If no box is generated, it is ignored.
avoid avoid is not a hard lockBrowsers try to honor it, but forced breaks and constrained page height can still win.
migrate Prefer break-after for new work Keep page-break-after only for older stylesheets. New print CSS should use break-after.
Compatibility
Browser Support page-break-after is a browser print layout property . Node.js, Deno, and Bun do not apply it.
✓ Legacy · Widely available
page-break-after Supported across modern browsers and older Internet Explorer for common print values. Prefer break-after for new CSS.
Google Chrome Supported
Full
Mozilla Firefox Supported
Full
Apple Safari Supported
Full
Microsoft Edge Supported
Full
Opera Supported
Full
Samsung Internet Supported
Full
Internet Explorer 4+
Full page-break-after Widely supported
Bottom line: Safe as a legacy print property. For new projects, use break-after and treat page-break-after as compatibility-only.
Remember
Key Takeaways Role: control a print page break after a block box.
Common values: auto, always, avoid.
Initial value: auto. Not inherited. Deprecated alias of break-after.
Migration: replace always with break-after: page.
One line: page-break-after is the old print-after-break control — learn it, then use break-after.
Frequently Asked Questions What does the CSS page-break-after property do? It controls whether a page break happens after an element when printing. Values can force a break, avoid one, or leave the choice to the browser.
What is the default value of page-break-after? The initial value is auto. The browser may insert a page break after the element when the print layout needs one.
Is page-break-after deprecated? Yes. It is a legacy alias kept for older pages. New CSS should use break-after instead. Browsers still support page-break-after for compatibility.
What is page-break-after: always mapped to? For compatibility, browsers treat page-break-after: always like break-after: page. That forces a page break after the element in print.
Why do I not see the break on screen? Page breaks apply in paged media such as Print Preview. Normal screen layout usually does not show a visible split.
Which browsers support page-break-after? It is widely available in all major browsers, including older Internet Explorer. It is a browser print layout property, not a Node.js feature.
About the author Developer, cloud engineer, and technical writer
I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.
8 people found this page helpful
Helpful Share Copy link Suggestion