The pageBreakBefore
property sets or gets the
page-break behavior before an element for printing or print preview.
pageBreakBefore |
Yes | Yes | Yes | Yes | Yes |
Return the pageBreakBefore property:
object.style.pageBreakBefore
Set the pageBreakBefore property:
object.style.pageBreakBefore='auto|always|avoid|emptystring|left|right|initial|inherit'
Value | Description |
---|---|
auto | Insert a page break before the element if necessary. This is default |
always | Always insert a page break before the element |
avoid | Avoid a page break before the element |
'' (empty string) | Don't insert page break before the element |
left | Insert one or two page breaks before the element, so the next page is considered a left page |
right | Insert one or two page breaks before the element, so the next page is considered a right page |
initial | Set to default value |
inherit | Inherit from parent element. |
Default Value: | auto |
---|---|
Return Value: | A string representing the page-break behavior before an element |
CSS Version | CSS2 |