2022.2

Table Of Contents
Tip: YoucanquicklychangethepositionpropertyofanelementinaPrintorWebsectionby
right-clickingitandselectingConvert to AbsoluteorConvert to Inline.
Foranexplanationofallvaluesthatthepositionpropertycanpossiblyhave,see
https://www.w3schools.com/css/css_positioning.asp.
Where to use it
InPrintsections,settingthepositionpropertytoabsolutecanbeveryuseful.Ittakestheelement
outofthetextflow,sothattheelementstayswhereitisonthepage.OnMasterPages(whichareonly
usedinPrintsections)elementsarealwayspositionedabsolutely;ifnot,theymustbelocatedinsidean
elementthathasanabsoluteposition.
InWebsections,settingthepositionpropertytoabsolutemaysometimesbeusefulforelements
insideaDivelement,butingeneral,elementsshouldnotbepositionedabsolutely.DesignsfortheWeb
shouldbeflexiblesothattheydisplaynicelyonavarietyofdevicesandscreensizes.
InEmailsections,donotusethisproperty.UseTablesinstead(see"DesigninganEmailtemplate"on
page472and"Table"onpage655).
How to use it
IntheFormattingdialogthepositionpropertycanoftenbefoundonthefirsttab,underPositioning.
ToopentheFormattingdialog,right-clicktheelementandclicktherespectiveelementontheshortcut
menu.Alternatively,selecttheelement(see"Selectinganelement"onpage570)andontheFormat
menuclicktherespectiveelement.
Thispropertyisn'tpresentinoneofthetabmenusofthestyleruleeditor,butyoucanadditandspecify
avalueafterclickingtheAdvancedbuttoninthestyleruleeditor(see"StylingtemplateswithCSSfiles"
onpage672).
AbouttheCSSdisplayproperty
ThedisplaypropertyisoneofthemostimportantCSSpropertiesforcontrollinglayout.Yetitis
unlikelythatyouwilluseitoftentopositionelementsinatemplate:inmostcases,theinitialvalueofthe
displaypropertyforanelementwillbetherightone.
Itismorelikelythatyouwillusethispropertyinstylesheetsandscriptstohidecertainelements,byset-
tingthevalueofthispropertytonone(display: none;).(See"StylingtemplateswithCSSfiles"on
page672and"Writingyourownscripts"onpage808.)
Foranonlinetutorialaboutthisproperty,seew3schoolswebsite.
Rotating elements
Inanytypeoftemplate,boxes,images,tables,textandotherelementscanberotated.
Page 688