HTML and CSS Reference
The printed page, while having many similarities to the screen, differs in
many ways as well, most notably that the contents of a document are
split across multiple fixed-sized pages rather than one single continuous
viewport. The properties listed in this section help control the presenta-
tion of each of those pages by offering guidelines about where those
page breaks occur within the document's content.
These two properties define whether a page break should occur before
or after a given piece of content, which is most useful when applied to
articles, headers, tables, or other “blocks” of content.
■ auto : The user-agent determines the most appropriate places for
a page break (default).
■ always : This tells the user agent to always break before (or after)
the selected element.
■ avoid : This tells the user agent to attempt to avoid breaks before
(or after) the selected element.
The page-break-inside property allows for the restriction of page
breaks inside a given element's content.
■ auto : The user agent determines when it is appropriate to place a page
break inside an element's content (default).
■ avoid : This tells the user agent to avoid page breaks within the
For all the page break properties, the page breaks may be unavoidable,
for example when a single element is larger than a single page. The