2022.2

Table Of Contents
Inserting a page break
Toinsertapagebreakbeforeorafteracertainelement,setthepage-break-beforepropertyorthe
page-break-afterpropertyofthatelement(aparagraphforexample;seealso"Stylingtextand
paragraphs"onpage271):
1. Selecttheelement(see"Selectinganelement"onpage174).
2. OntheFormatmenuselecttherespectiveelementtoopentheFormattingdialog.
3. IntheBreaksgroup,setthebeforeorafterproperty.
l
Before:Setswhetherapagebreakshouldoccurbeforetheelement.Thisisequivalentto
thepage-break-beforepropertyinCSS;seeCSSpage-break-beforepropertyforan
explanationoftheavailableoptions.
l
After:Setswhetherapagebreakshouldoccuraftertheelement.Equivalenttothepage-
break-afterpropertyinCSS;seeCSSpage-break-afterpropertyforanexplanationofthe
availableoptions.
ClickthebuttonAdvancedtoaddCSSpropertiesandvaluestotheinlinestyletagdirectly.
AlternativelyyoucouldsetthispropertyontheSourcetabintheHTML(forexample:<h1 style-
e="page-break-before: always;">),oraddaruletothestylesheet;see"Stylingyourtemplates
withCSSfiles"onpage265.
Note: Youcannotusethesepropertiesonanempty<div>oronabsolute-positionedelements.
Preventing a page break
Topreventapagebreakinsideacertainelement,setthepage-break-insidepropertyofthatelement
toavoid:
l
Selecttheelement(see"Selectinganelement"onpage174).
l
OntheFormatmenu,selecttherespectiveelementtoopentheFormattingdialog.
l
IntheBreaksgroup,settheinsidepropertytoavoid,topreventapagebreakinsidetheele-
ment.Foranexplanationofallavailableoptionsofthepage-break-insidepropertyinCSS,see
CSSpage-break-insideproperty.
AlternativelyyoucouldsetthispropertyontheSourcetabintheHTML(forexample:<ul style-
e="page-break-inside: avoid;">),oraddaruletothestylesheet;see"Stylingyourtemplates
withCSSfiles"onpage265.
Addingblankpagestoasection
Howtoaddablankpagetoasectionisdescribedinahow-to:Createblankpageonfieldvalue.
Page 140