Skip to content

CSS break-after Property

The break-after CSS property defines how page, column, or region breaks should behave after the generated box. It supports the following values: auto, avoid, always, all, page, column, region, avoid-page, avoid-column, and avoid-region.

When applied to an element inside a multicol container that is also inside a page container, it forces both a column and a page break.

Each element boundary is influenced by three properties:

When multiple break properties apply, the following resolution rules determine the outcome:

  1. Forced breaks (e.g., page, column, always) take priority over avoid breaks.
  2. If multiple forced breaks apply, break-before takes precedence over break-after, which takes precedence over break-inside.
  3. If any applicable value is an avoid break (avoid, avoid-page, avoid-column, or avoid-region), the break will not be applied.
Initial Valueauto
Applies toBlock-level elements.
InheritedNo.
Animatablediscrete
VersionCSS3
DOM Syntaxobject.style.breakAfter = "always";

Syntax

Syntax of CSS break-after Property

css
break-after: auto | avoid | always | all | page | column | region | avoid-page | avoid-column | avoid-region | initial | inherit;

Example of the break-after property:

Example of CSS break-after Property with column value

html
<!DOCTYPE html>
<html>
  <head>
    <title>The title of the document</title>
    <style>
      .multicol {
        background-color: #eee;
        padding: 10px;
        column-count: 3;
        column-rule: 2px dotted #ccc;
      }
      .multicol hr {
        break-after: column;
      }
    </style>
  </head>
  <body>
    <h2>Break-after property example</h2>
    <div class="multicol">
      <h2>Lorem ipsum</h2>
      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sagittis, arcu ut pulvinar sollicitudin, enim purus mollis tellus, et porta elit sem in nulla. Integer a magna eget justo convallis porta. Vestibulum lacinia eget leo sed elementum. Quisque dapibus ullamcorper quam, at pretium quam eleifend a. Donec sit amet blandit risus. Nunc tempus tellus vitae nibh pellentesque imperdiet. Ut pulvinar rhoncus velit, ut euismod odio ornare vel.</p>
      <hr />
      <h2>Lorem ipsum</h2>
      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sagittis, arcu ut pulvinar sollicitudin, enim purus mollis tellus, et porta elit sem in nulla. Integer a magna eget justo convallis porta. Vestibulum lacinia eget leo sed elementum. Quisque dapibus ullamcorper quam, at pretium quam eleifend a. Donec sit amet blandit risus. Nunc tempus tellus vitae nibh pellentesque imperdiet. Ut pulvinar rhoncus velit, ut euismod odio ornare vel.</p>
    </div>
  </body>
</html>

Result

Values of CSS break-after Property

Values

ValueDescription
autoAllows any break (page, column, region) after the principal box.
avoidAvoids any break after the principal box.
alwaysForces a break after the principal box.
allForces a break after the principal box and all enclosing boxes of the same type (e.g., all columns or all pages).
pageForces a page break after the principal box.
columnForces a column break after the principal box.
regionForces a region break after the principal box.
avoid-pageAvoids a page break after the principal box.
avoid-columnAvoids a column break after the principal box.
avoid-regionAvoids a region break after the principal box.
initialSets this property to its default value.
inheritInherits this property from its parent element.

Practice

Which of the following are possible values for the 'break-after' property in CSS, as described on the referenced page?

Dual-run preview — compare with live Symfony routes.