Search within TutorialsPark

CSS page-break-after Property


To specify the way to handle page breaks after a particular element.


Definition and Notes.

1. The CSS page-break-after property is used to specify whether one or multiple page breaks can be inserted after an element

2.It is used to ensure that some paragraph is always the last block to appear on a print page.

Syntax:

CSS page-break-after property. internetexplorer safari firefox opera chrome

View in Splitscreen»

Code-Editor:



Property Values

Value Description
auto To leave it to the browser to decide where to insert a page break. It the default value
always To enforce a page break before or after the specified element
avoid To avoid having a page break, if possible
left To enforce one or multiple page breaks before or after an element, such that the page is formatted as a left page.
right To enforce one or multiple page breaks before or after an element, such that the page is formatted as a right page.
inherit To inherit properties of the parent element

Specifications

Specs Value
Name page-break-after
Value auto | always | avoid | left | right
Initial Value auto
Applies to Block-level elements
Javascript syntax object.style.pageBreakAfter="left"
Inherited No
Computed Value Same as declared value.
Browser Support internetexplorer safari firefox opera chrome

Related Examples.