2022.2

Table Of Contents
Connect.
FormoreinformationaboutSass,see:https://sass-lang.com/.
ForinformationaboutworkingwithSassintheDesigner,see"UsingaSassfile"onpage270.
StylingyourtemplateswithCSSfiles
Note: EmailclientsdonotreadCSSfilesandsomeevenremovea<style>tagwhenitispresent
intheemail'sheader.Nevertheless,CSSfilescanbeusedwiththeEmailcontextinthe
Designer.
WhengeneratingoutputfromtheEmailcontext,allCSSrulesthatapplytothecontentofthe
emailcanbeprocessedandaddedeithertotheheaderoftheemailortoinlinestyleproperties
asiflocalformattingwasapplied,dependingontheEmailsectionproperties.See"Emailsection
properties"onpage483.
Step 1: edit CSS
Editing CSS using a property sheet
1. SelectEdit > Stylesheets.
2. ClickthedownwardpointingarrownexttoGlobalandselectthescopethatyouwanttoedit
stylesfor,orselecttheGlobalCSSfiletoeditCSSrulesthatapplytoallcontexts.
3. ClickNew,orclickoneoftheselectorsthatarealreadylistedandclickEdit.
4. TypeaCSSselector.Thiscanbe:
l
Aclass:.class.ClassrulesapplytoallHTMLelementswiththatclass.Whenyoucreate
aclass,chooseanamethatindicateswhattheclassisusedfor,e.g.small’foraclassthat
giveselementsthefontsize‘small’.Theclassnamehastobeprecededbyadot,e.g.
.small.
l
AnID:#id.AnIDisalwaysprecededby#,e.g.#sender.WhenyoucreateanID,choose
anamethatindicateswhattheIDisusedfor,e.g.#senderwouldrefertotheHTMLele-
mentwithinformationaboutthesender.
Note: EachIDshouldbeuniqueandcanonlybeusedonceineachsection.
Note: DonotgiveanelementtheID'pages'ortheclassname'dynamic'.Theseare
reservedwords.UsingthemasanIDorclassnameleadstoundesirableeffects.
l
AnHTMLelement:p,h1,table,etc.Typethetagnamewithouttheanglebrackets.
Page 265