CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS page break before Property

CSS page-break-before Property

 

 

The page-break-before property is used to add page-break before a specified element. Similar properties like it are page-break-after and page-break-inside. It helps to define how a document will behave when printed.

 

Default Value:-

 

Its default value is auto.

 

Syntax:-

 

Its syntax is:- page-break-after: auto | always | avoid | left | right | initial | inherit;

 

Further Explanation:-

 

Value Description
auto Automatic page-break
always Always insert a page break before the element
avoid Avoid a page break before the element.
left Insert a page break before the element so the next page is formatted as a left page
right Insert a page break before the element so the next page is formatted as a right page
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS