Export (0) Print
Expand All

page-break-after

Sets a value indicating whether a page break occurs after the object.

{ page-break-after: sBreak }

sBreak

String that specifies or receives one of the following values:

auto

Default. Neither force nor forbid a page break after the object.

always

Always insert a page break after the object.

empty string

Do not insert a page break.

left

Insert one or two page breaks after the object so that the next element begins at the top of the next left-hand page (in double-sided documents).

right

Insert one or two page breaks after the object so that the next element begins at the top of the next right-hand page (in double-sided documents).

The property has a default value of auto. The cascading style sheet property is not inherited.

This property applies when printing the document. This property does not apply to the BR or HR elements.

If there are conflicts between this property and the page-break-before value on the object previously displayed in the browser, the value that results in the largest number of page breaks is used.

Page breaks are not permitted inside positioned objects.

The following example uses the page-break-after property to start printing on a new page. This example uses the P element as a selector in an embedded style sheet to break the page at the end of each paragraph:

<style>
    p {page-break-after: always}
</style>
</head>
<body>
<p>
:
</p>

BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, DD, DIV, DL, DT, FIELDSET, FORM, HN, LI, OL, P, TABLE, TBODY, TFOOT, TH, THEAD, TR, UL, XMP

Community Additions

ADD
Show:
© 2015 Microsoft