2022.2

Table Of Contents
Theseattributescanbesetinascript.ThefollowingscriptdynamicallychangesthepositionofaPosi-
tionedBoxinaPrintcontextbysettingtheoffset-xandoffset-yvalues.
results.attr('offset-x','96');
results.attr('offset-y','96');
Themeasurementsareinpixels(e.g.96px=1in).Notethatyoudonotneedtosettheunits.
DonotsetthetoporleftpropertyofaPositionedBoxinastylesheet.ThepositionofaPositioned
BoxinaPrintcontextishandledviaitsattributestotakethepage(orMasterPage)andpagemar-
ginsintoaccount.Attributescannotbeoverwrittenfromwithinastylesheet:stylesheetsspecifystyle
properties,notvaluesofattributes.
Styling a positioned box
APositionedBoxcanbestyledusingtheFormat > Boxmenuitem,throughtheCTRL+Mkeyboard
shortcut,orthroughCSS;see"Stylingandformatting"onpage260and"StylingtemplateswithCSS
files"onpage261.
InlineBox
AnInlineBoxisonethatisplacedwithinthetextflow,whereotherelements(includingtext)canwrap
aroundit.Aninlineboxisactuallya<div>elementthatisfloating;inotherwords,ithasitsCSSprop-
ertyfloatsettoleft,rightorno float.
InlineBoxescanbeusedinPrintcontextandinWebpages.Itiscommontodoentireweblayouts
usingthefloatproperty.InEmailtemplates,itisbesttouseTablestopositionelements.
Adding an Inline Box
Toinsertaninlinebox,usethe icononthetoolbar.InlineBoxescanberesizedusingthehandleson
thesidesandcorner.TheycanbestyledusingtheFormat > Boxmenuitem,throughtheCTRL+Mkey-
boardshortcutorthroughtheCSSfiles;see"Stylingandformatting"onpage260and"Stylingtem-
plateswithCSSfiles"onpage261.
Positioning an Inline Box
InitiallyanInlineBoxwillfloattotheleft.Usethe (Floatleft), (Nofloat)and (Floatright)icons
onthetoolbartochangethepositionofanInlineBoxwithinthetext.
l
TheFloat leftbuttonalignstheInlineBoxtotheleft.Thetextispositionedtotherightofitandis
wrappedaroundthebox.
Page 228