Break
Break After Classes
.break-after-auto
Sets the break behavior after an element to auto
, allowing the browser to determine the break behavior.
CSS equivalent: break-after: auto;
Example usage:
.break-after-avoid
Sets the break behavior after an element to avoid
, indicating that the element should not be the start of a break.
CSS equivalent: break-after: avoid;
Example usage:
.break-after-always
Sets the break behavior after an element to always
, forcing a break after the element.
CSS equivalent: break-after: always;
Example usage:
.break-after-all
Sets the break behavior after an element to all
, indicating that all content should be forced to break after the element.
CSS equivalent: break-after: all;
Example usage:
.break-after-page
Sets the break behavior after an element to avoid-page
, indicating that the element should avoid breaking on a page boundary.
CSS equivalent: break-after: avoid-page;
Example usage:
.break-after-column
Sets the break behavior after an element to avoid-column
, indicating that the element should avoid breaking at a column boundary.
CSS equivalent: break-after: avoid-column;
Example usage:
These classes allow you to control the break behavior after an element, specifying whether it should break, avoid breaking, or force a break. Use them to create layouts that control the flow of content and avoid undesired breaks.
Break Before Classes
.break-before-auto
Sets the break behavior before an element to auto
, allowing the browser to determine the break behavior.
CSS equivalent: break-before: auto;
Example usage:
.break-before-avoid
Sets the break behavior before an element to avoid
, indicating that the element should not be the end of a break.
CSS equivalent: break-before: avoid;
Example usage:
.break-before-always
Sets the break behavior before an element to always
, forcing a break before the element.
CSS equivalent: break-before: always;
Example usage:
.break-before-all
Sets the break behavior before an element to all
, indicating that all content should be forced to break before the element.
CSS equivalent: break-before: all;
Example usage:
.break-before-page
Sets the break behavior before an element to avoid-page
, indicating that the element should avoid breaking on a page boundary.
CSS equivalent: break-before: avoid-page;
Example usage:
.break-before-column
Sets the break behavior before an element to avoid-column
, indicating that the element should avoid breaking at a column boundary.
CSS equivalent: break-before: avoid-column;
Example usage:
These classes allow you to control the break behavior before an element, specifying whether it should break, avoid breaking, or force a break. Use them to create layouts that control the flow of content and avoid undesired breaks.
Break Inside Classes
.break-inside-auto
Sets the break behavior inside an element to auto
, allowing the browser to determine the break behavior.
CSS equivalent: break-inside: auto;
Example usage:
.break-inside-avoid
Sets the break behavior inside an element to avoid
, indicating that the element should not be broken inside.
CSS equivalent: break-inside: avoid;
Example usage:
.break-inside-avoid-page
Sets the break behavior inside an element to avoid-page
, indicating that the element should avoid being broken at a page boundary.
CSS equivalent: break-inside: avoid-page;
Example usage:
.break-inside-avoid-column
Sets the break behavior inside an element to avoid-column
, indicating that the element should avoid being broken at a column boundary.
CSS equivalent: break-inside: avoid-column;
Example usage:
These classes allow you to control the break behavior inside an element, specifying whether it should be broken or avoided. Use them to create layouts that control the internal breaks within elements and ensure content integrity.
Page Break After Classes
.page-break-after-auto
Sets the page break behavior after an element to auto
, allowing the browser to determine the page break behavior.
CSS equivalent: page-break-after: auto;
Example usage:
.page-break-after-always
Sets the page break behavior after an element to always
, indicating that a page break should always occur after the element.
CSS equivalent: page-break-after: always;
Example usage:
.page-break-after-avoid
Sets the page break behavior after an element to avoid
, indicating that a page break should be avoided after the element.
CSS equivalent: page-break-after: avoid;
Example usage:
.page-break-after-left
Sets the page break behavior after an element to left
, indicating that a page break should occur after the element and that the next page should be a left-hand page.
CSS equivalent: page-break-after: left;
Example usage:
.page-break-after-right
Sets the page break behavior after an element to right
, indicating that a page break should occur after the element and that the next page should be a right-hand page.
CSS equivalent: page-break-after: right;
Example usage:
Page Break Before Classes
.page-break-before-auto
Sets the page break behavior before an element to auto
, allowing the browser to determine the page break behavior.
CSS equivalent: page-break-before: auto;
Example usage:
.page-break-before-always
Sets the page break behavior before an element to always
, indicating that a page break should always occur before the element.
CSS equivalent: page-break-before: always;
Example usage:
.page-break-before-avoid
Sets the page break behavior before an element to avoid
, indicating that a page break should be avoided before the element.
CSS equivalent: page-break-before: avoid;
Example usage:
.page-break-before-left
Sets the page break behavior before an element to left
, indicating that a page break should occur before the element and that the previous page should be a left-hand page.
CSS equivalent: page-break-before: left;
Example usage:
.page-break-before-right
Sets the page break behavior before an element to right
, indicating that a page break should occur before the element and that the previous page should be a right-hand page.
CSS equivalent: page-break-before: right;
Example usage:
These classes allow you to control the page break behavior before or after an element, specifying when and how page breaks should occur in print or multi-page contexts. Use them to control the layout and pagination of content.
Last updated