Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

break-after — controlling breaks after an element

The break-after property controls breaks after an element’s box between pages, columns, or regions. It can force a break or discourage the browser from inserting one; it does not control ordinary text line wrapping.

Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required

Syntax

break-after: auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region;
/* Also accepts CSS-wide keywords. */

break-after specifies break behavior after a generated box in a fragmentation context, such as printing or multi-column layout. Its initial value is auto, and it is not inherited. It applies to block-level boxes, flex and grid items, and table rows and row groups, among others; it does not apply to absolutely positioned boxes.

auto neither forces nor forbids a break. avoid discourages one, while avoid-page, avoid-column, and avoid-region target the specified break type. Avoidance is not an absolute guarantee: constraints can be relaxed to fit content. page, column, and region force the corresponding break only in a matching context; region values concern flow through CSS Regions, not arbitrary containers.

left and right force subsequent content onto the specified physical page side; recto and verso select a side according to page progression. Level 4 adds always, which forces a break in the nearest fragmentation context, and all, which breaks through every enclosing context. Specification inclusion does not establish browser support; these values need separate verification.

At a box boundary, break-after interacts with the next box’s break-before and ancestors’ break-inside. A forced break overrides break avoidance. To discourage splitting an element’s contents, use break-inside, not break-after. The legacy page-break-after is a compatibility alias with a special mapping: page-break-after: always corresponds to break-after: page, not break-after: always.

Examples

<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>break-after</title>
<style>
  .columns {
    width: 320px;
    height: 100px;
    column-count: 2;
    column-gap: 20px;
    column-fill: auto;
    direction: ltr;
    font: 16px/20px monospace;
  }
  p { margin: 0; }
  .first { break-after: column; }
</style>
<div class="columns">
  <p class="first">A</p>
  <p>B</p>
</div>
</html>

Result

A appears at the top of the left column; B appears at the top of the right column.

The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.

Sources