The CSS page-break Property

As a follow up to our last meeting, member Jerry Green put together a cheat sheet on the “page-break” property from information at W3Schools. There are now 3 types:

page-break-after Property:
CSS Syntax
page-break-after: auto|always|avoid|left|right|initial|inherit;
Definition and Usage
The page-break-after property sets whether a page break should occur AFTER a specified element.

page-break-before Property:
CSS Syntax
page-break-before: auto|always|avoid|left|right|initial|inherit;
Definition and Usage
The page-break-before property sets whether a page break should occur BEFORE a specified element.

page-break-inside Property:
CSS Syntax
page-break-inside: auto|avoid|initial|inherit;
Definition and Usage
The page-break-inside property sets whether a page break is allowed inside a specified element.


Leave a Reply

Your email address will not be published. Required fields are marked *