2022.2

Table Of Contents
Notethatwherelocalformattingconflictswithaformattingruleforthesameelementinoneofthestyle
sheets,thelocalformattingrulegetspriority;theruleinthestylesheetwillbeignored.
Itishighlyrecommendedtousestylesheetsintemplatesrightfromthestart.Evenmoresoifthecom-
municationsaregoingtobeoutputtodifferentoutputchannels,oriftheyconsistofdifferentsections
(forexample,acoveringletterfollowedbyapolicy).UsingCSSwithtemplatesallowsaconsistentlook
andfeeltobeapplied.Astylesheetcanchangethelookofmultipleelements,makingitunnecessaryto
formateachandeveryelementinthetemplate,timeandagain,whenthecompany'slayoutpref-
erenceschange.See"StylingtemplateswithCSSfiles"below.
Layout properties
Colorsandfontsmakeanimportantcontributiontothelookandfeelofyourtemplate.See"Colors"on
page699and"Fonts"onpage703.
Textandparagraphshaveanumberofformattingoptionsthatarenotavailableforotherelements:font
stylesandlineheight,forexample.See"Stylingtextandparagraphs"onpage682.
Boxesandanumberofotherelementscanhaveabackgroundcolorand/orbackgroundimage;see
"Backgroundcolorand/orimage"onpage695.
Severalelements,suchasboxes,images,paragraphs,andtables,canhaveaborder;see"Border"on
page697.
Boxes,images,tables,textandotherelementscanberotated;see"Rotatingelements"onpage688.
Spacing(paddingandmargin)helpstopositionelementsrelativetootherelementsinthetemplate;
see"Spacing"onpage707.
Thebestwaytopositionelementsdependsontheoutputchannelforwhichthetemplateisintended;
see"Howtopositionelements"onpage686.
Thelocalesettinginfluenceshowdates,numbersandamountsofmoneyaredisplayed;see"Locale"
onpage706.
Styling templates with CSS files
TheLayouttoolbarandtheFormatmenuoffermanypossibilitiestostyleeverypieceofatemplate.
However,stylingeverysingleelement,oneafteranother,isalotofworkand,moreimportantly,canres-
ultinatemplatewithamessymixofstylesthatisn’teasytomaintainandlacksconsistentdesign.
ThereforethepreferredwaytostyletemplatesiswithCSSfiles:CascadingStyleSheets.Thistopic
explainshowtodothat.
Why use CSS files
ThebasicideabehindCSSistoseparatethestructureandcontentsofa(HTML)documentasmuchas
possiblefromthepresentationofthatdocument.
Page 672