/

HTML / CSS / JavaScript Tutorial

CSS Property: page-break-after

[this page | pdf | back links]

The CSS (CSS2) page-break-after property specifies whether a page break should occur after 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 after element

avoid

Where possible avoids a page break after the element

left

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

right

Page break is inserted after 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.pageBreakAfter="always"

Inherited:

No

Animatable:

No

 


NAVIGATION LINKS
Contents | Prev | Next | CSS Properties


Desktop view | Switch to Mobile