2022.2

Table Of Contents
menuclicktherespectiveelement.
2. ClicktheBordertab.
3. UnchecktheoptionSame for all sidestobeabletostyleeachsideoftheborderseparately.
4. Specifythewidthoftheborder(side).Thisisequivalenttotheborder-widthpropertyinCSS.
5. Specifythestyleoftheborder(side),suchassolid,dashedordotted.Thisisequivalenttothe
border-stylepropertyinCSS.
6. Specifythecoloroftheborder(side):selectanamedcolor(definedinthe"ColorsProperties"on
page439)fromthedrop-down,orclickthecoloredsquaretoopentheColorPickerdialog("Color
Picker"onpage438).AlternativelyyoucouldtypeanameorvalueintheColorfielddirectly.It
mustbeapredefinedCSScolorname(CSScolornames),ahexadecimalcolorcode(HTMLHex
Color),anRGBcolorvalue,forexamplergb(216,255,170)oraCMYKcolorvalue,for
examplecmyk(15%, 0%, 33%, 0%).
Thissettingisequivalenttotheborder-colorpropertyinCSS.
Note: Itisalsopossibletosetanelement'sborderinastylesheet;see"Stylingtemplateswith
CSSfiles"onpage261.
Roundingcorners
Anyelementinatemplatecanhaveroundedcorners.Forboxesandimages,thisoptionisavailablein
theFormattingdialog.Forotherelements,youhavetocreateaCSSruletosettheborder-radiusof
theelement(orclassofelements).
Boxes, images and tables
Toroundthecornersofabox,imageortable:
1. SelectaBox,ImageorTableelement(see"Selectinganelement"onpage174)andonthe
Formatmenuclicktherespectiveelement.Alternatively,right-clicktheelementandclickthe
respectiveelementontheshortcutmenu.
2. OnthefirsttabintheFormattingdialog(theBox,ImageorTabletabrespectively)specifythe
corner radiusinameasure(10mm,5px,0.5in)orpercentage(0-90%).
3. ForaBoxorImage,clickApplytoseetheeffectwithoutclosingthedialogorOKtoclosethedia-
log.
ForaTable,youhavetotakeyetanotherstep.Tablescan'thaveroundedcornersandcollapsedbor-
dersatthesametime.Allbuilt-intablestylesintheDesignerhavecollapsedborders.Fortherounded
cornerstoshow,youmustcreateaCSSrulethatsetsthetable'sborder-collapsepropertytosep-
arateinsteadofcollapse.
Page 286