2022.2

Table Of Contents
Styling an image
Justlikemanyotherelements,imagescanbegivenbordersandroundedcorners,andtheycanbe
rotated.Howtodothisisn'tanydifferentfromthewayitisdonewithotherelements,soitisn't
describedinthistopic,butingeneralformattingtopics;see"Stylingandformatting"onpage671.
Thistopicdiscussesspecificimageformattingissues.
NotethatimagecharacteristicslikebrightnessandcontrastcannotbechangedwithintheDesigner.
Localformattingvs.stylesheets
Justasotherelements,imagescanbestyledintwoways:
l
Withlocal formatting.Thismeansstylingtheimagedirectly,usingtheFormattingdialog.
l
ViaCascading Style Sheets(CSS).Inastylesheet,stylerulesaredeclaredforelementswith
differentHTMLtags,ID'sandclasses.
See"Stylingandformatting"onpage671forbackgroundinformationaboutthesetwomethods.
Applying local formatting to an image
Toapplylocalformattingtoanimage,either:
l
right-clicktheimageandselectImage...fromthecontextualmenu
l
clicktheimageandselectFormat > Image...fromthemenu.
Foranexplanationoftheavailableoptions,see"ImageFormattingdialog"onpage886.
Applying style rules to an image
Toformatanimageviaastyle sheet,firstgivetheimageanIDorclass:selecttheimage,andenter
theIDorclassontheAttributespane.ThismakesitpossibletomaketheCSSstyleruletargetthis
imagespecifically,orasetofimageswiththesameclass.Astylerulewiththeselectorimg(theHTML
imagetag)wouldapplytoallimages.
Next,createthestylerule;see"StylingtemplateswithCSSfiles"onpage672.Notethatwhenaprop-
ertyisn'tpresentinthestyleruleeditor,itcanstillbeused:clicktheAdvancedbuttoninthestylerule
editor;enterthepropertyunderProperty,anditsvalueunderValue.
Resizinganimage
Thereareseveralwaystoresizeanimageafterinsertingitinthecontentofatemplate.
l
Clicktheimageanddragthehandlestoresizeit.PresstheShiftkeywhiledragging,toscalethe
imageproportionally.
Page 693