monks/page_break_before

{{deprecated_header}}

This property has been replaced by the {{cssxref(“break-before”)}} property.

The page-break-before CSS property adjusts page breaks before the current element.

This property applies to block elements that generate a box. It won’t apply on an empty {{ HTMLElement(“div”) }} that won’t generate a box.

Values

pub const always: #(String, String)
  • : Always force page breaks before the element.
pub const auto_: #(String, String)
  • : Initial value. Automatic page breaks (neither forced nor forbidden).
pub const avoid: #(String, String)
  • : Avoid page breaks before the element.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const left: #(String, String)
  • : Force page breaks before the element so that the next page is formatted as a left page. It’s the page placed on the left side of the spine of the book or the back side of the page in duplex printing.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for page-break-before

pub const recto: #(String, String)
  • : If pages progress left-to-right, then this acts like right. If pages progress right-to-left, then this acts like left.
pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const right: #(String, String)
  • : Force page breaks before the element so that the next page is formatted as a right page. It’s the page placed on the right side of the spine of the book or the front side of the page in duplex printing.
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

Enter a variable name to be used for page-break-before. It will be wrapped in var() and have -- prepended.

pub const verso: #(String, String)
  • : If pages progress left-to-right, then this acts like left. If pages progress right-to-left, then this acts like right.
Search Document