/

HTML / CSS / JavaScript Tutorial

CSS Property: page-break-before

[this page | pdf | back links]

The CSS (CSS2) page-break-before property specifies whether a page break should occur before an element. It cannot be used on an empty <div> element or on absolutely positioned elements.

 

Valid property values (other than inherit and initial) are:

 

Value

Description

auto

(default value). Page breaking defined automatically

always

Page break always inserted before element

avoid

Where possible avoids a page break before the element

left

Page break is inserted before element in a manner that results in the next page being formatted as a left page

right

Page break is inserted before element in a manner that results in the next page being formatted as a right page

 

Default Value:

auto

JavaScript syntax:

e.g. object.style.pageBreakBefore="always"

Inherited:

No

Animatable:

No

 


NAVIGATION LINKS
Contents | Prev | Next | CSS Properties


Desktop view | Switch to Mobile