2022.2

Table Of Contents
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314and"Stylingandformatting"on
page260.
Tip: WiththeCopy fitfeature,textcanautomaticallybescaledtotheavailablespaceinaBoxor
Div.See"CopyFit"onpage274.
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276).
PositionedBoxesaresuitableforuseinPrinttemplatesonly.
Adding a Positioned Box
ToinsertaPositionedBox,usethe icononthetoolbar.
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:
l
anchordefinesthepagenumber(startingby0)theboxisplacedon
l
offset-xdefinesthehorizontalpositionoftheboxrelativetoitscontainer
l
offset-ydefinestheverticalpositionoftheboxrelativetoitscontainer.
Page 227