CSS Fragmentation

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  • page-break-after: auto | always | avoid | left | right | initial | inherit;
  • page-break-before: auto | always | avoid | left | right | initial | inherit;
  • page-break-inside: auto | avoid | initial | inherit;

Parameters

ValueDescription
autoDefault. Automatic page breaks
alwaysAlways insert a page break
avoidAvoid page break (if possible)
leftInsert page breaks so that the next page is formatted as a left page
rightInsert page breaks so that the next page is formatted as a right page
initialSets this property to its default value.
inheritInherits this property from its parent element.

Remarks

There is no page-break property in CSS. Only the 3 properties (page-break-before, page-break-after, page-break-inside).

Related: orphans, widows.



Got any CSS Question?