2022.2

Table Of Contents
StylingandformattinganEmailtemplate
ThecontentsofanEmailsectioncanbeformatteddirectly,orstyledwithCascadingStyleSheets
(CSS).See"Stylingandformatting"onpage671.
EmailclientsdonotreadCSSfilesandsomeevenremovea<style>tagwhenitispresentinthe
email'sheader.Nevertheless,CSSfilescanbeusedwiththeEmailcontextintheDesigner.
WhengeneratingoutputfromtheEmailcontext,allCSSrulesthatapplytothecontentoftheemailcan
beprocessedandaddedeithertotheheaderoftheemailortoinlinestylepropertiesasiflocalformat-
tingwasapplied,dependingontheEmailsectionproperties.See"Emailsectionproperties"on
page931.
Tip: Beforeyoucanstyleanelement,youhavetoselectit.InanEmailcontextitcanbedifficult
toselectanelementbyclickingonit.UsethebreadcrumbsatthetopandtheOutlinepaneat
theleft,toselectanelement.See"Selectinganelement"onpage570.
Inorderforastylesheettobeappliedtoaspecificsection,itneedstobeincludedinthatsection.
Therearetwowaystodothis.
Drag & drop a style sheet
1. ClickandholdthemousebuttononthestylesheetontheResourcespane.
2. MovethemousecursorwithintheResourcespanetothesectiontowhichthestylesheetshould
beapplied.
3. Releasethemousebutton.
Using the Includes dialog
1. OntheResourcespane,right-clickthesection,thenclickIncludes.
2. FromtheFile typesdropdown,selectStylesheets.
3. ChoosewhichCSSfilesshouldbeappliedtothissection.Theavailablefilesarelistedattheleft.
Usethearrowbuttonstomovethefilesthatshouldbeincludedtothelistattheright.
4. YoucanalsochangetheorderinwhichtheCSSfilesareread:clickoneoftheincludedCSSfiles
andusetheUpandDownbuttons.Notethatmovingastylesheetupinthelistgivesitless
weight.Incaseofconflictingrules,stylesheetsreadlaterwilloverridepreviousones.
Note: Stylesheetsareappliedintheorderinwhichtheyareincludedinasection.Thestylesin
eachfollowingstylesheetadduptothestylesfoundinpreviouslyreadstylesheets.Whenstyle
sheetshaveaconflictingruleforthesameelement,classorID,thelaststylesheet‘wins’and
overridestherulefoundinthepreviousstylesheet.
Page 482