2022.2

Table Of Contents
TomaketheCSSruleapplytoasetofparagraphswiththesameclass,firstgivetheparagraphsthe
sameclass(forexamplerounded).ThenaddthatclasstotheselectoroftheCSSrule,forexample
p.rounded { border-radius: 5px; }.
Colors
Colorsmakeanimportantcontributiontothelookandfeelofyourtemplates.Thistopicexplainshowto
defineandapplycolorsandhowtokeepthemconsistentindifferentoutputchannels.
Definingcolors,spotcolorsandtints
Colorselectors,suchasthedrop-downlistonthetoolbar,initiallycontainasmallsetofcolors.Add
yourowncolorssothattheycanbeusedthroughoutthetemplates,inallcontextsandincolorselector
dialogsaswellaswiththeirnamesinstylerules(see"Stylingandformatting"onpage260).
Defining colors
Todefinecolors:
1. SelectEdit > Colorsonthemenu.
2. Addacolor.Therearetwowaystodothis:
l
ClicktheNewbutton(thegreenplus).
l
SelectanexistingcolorfromthelistandcopyitusingtheDuplicatebutton .(TheFil-
terdrop-downlimitsthelisttocolorsofacertaintype.)Selectthenewcolorandclickthe
Editbutton .
3. IntheEditcolordialog,typeanameforthecolor(orlettheDesignercreateanamebasedonthe
valuesthatyouselect).Thecolor’snamecanbeusedinstylesheets.Itshouldnotcontain
spacesorspecialcharacters.
Tip: Workingwithstylesheets?Chooseanamethatreflectsthepurposeofthecolor,
ratherthananamethatdescribesthecolor.Thiswayyouwon'thavetochangethecolor's
nameinthestylesheetswhenyouchangethecolor.
4. ClickColor.(Tintisusedfortransparentcolors.)
5. Selectthecolortype:CMYKorRGB.
ThelettersCMYKstandforCyan(agreenish-bluecolor),Magenta(reddish-purple),Yellowand
Key(black).Incolorprinting,thesearetheusualprimarycolors.
Page 288