2022.2

Table Of Contents
Boxes
Boxesareelementsthatareusedtosurroundotherelements,eithertostylethem,tofindthem,orto
placetheminspecificlocations.
Wrappingelementsinabox(orinasemanticHTMLelement)makesiteasiertotargetthemina
scriptorinastylesheet.Placethecursorintheelementorselectmultipleelements.Then,onthe
menu,clickInsert > Wrap in Box.Youcannowusethewrapperelementasascript'sorstyle's
selector;see"UsingtheTextScriptWizard"onpage729and"Stylingandformatting"on
page671.
Tip: WiththeCopy fitfeature,textcanautomaticallybescaledtotheavailablespaceinaBoxor
Div.See"CopyFit"onpage685.
PositionedBox
APositionedBoxisonethatcanbefreelymovedaroundthepageanddoesnotdependontheposition
ofotherelements.Apositionedboxisactuallya<div>elementthathasanabsolute position;inother
words,ithasitsCSSpropertypositionsettoabsolute(seealso:"UsingtheCSSpositionprop-
erty"onpage687).
PositionedBoxesaresuitableforuseinPrinttemplatesonly.
Adding a Positioned Box
ToinsertaPositionedBox,usethe icononthetoolbar.
Moving and resizing a Positioned Box
PositionedBoxescanbemovedbydraggingtheborders,andresizedusingthehandlesonthesides
andthecorners.Pressinganyarrowkeymovestheboxby1pixelinthedirectionofthatkey.
AlternativelythesizeandpositioncanbesetontheAttributespane.Notethatthesizeandoffsetval-
ueswillbedisplayedinthedefaultprintunitsasdefinedinthepreferences.
l
TomoveorresizemultiplePositionedBoxesatthesametime,holdtheCtrlkeywhileselecting
them.YoucouldeitherselectthemintheDesignview(themaineditor)orintheOutlinepane.
l
HoldtheShiftkeywhileresizingaPositionedBoxtoensuresthattheboxretainsitsaspectratio.
l
HoldtheShiftkeywhiledraggingaPositionedBoxtomoveithorizontallyorvertically.
Dynamically changing the position
APositionedBoxhasthefollowingattributes:
Page 623