2022.2

Table Of Contents
<imgsrc="file:/C:/Users/MyUser/Pictures/mixed.pdf?page=1"class="ol_pdf_datamapper_input">.
Youcanusetheol_pdf_datamapper_inputclassasaselectortotargetthesectionbackgroundina
styleruleorscript.
Placing the section background in front of the Master Page
ThestackingorderofelementsinsideeachMediaBox,frombottomtotop,is:
1. Media
2. Sectionbackground
3. MasterPageelements
Usingthe.page_mediaboxselector,youcouldchangethisstackingorderandplacethesectionback-
groundontopoftheelementsontheMasterPage.Setthez-indexpropertytoavaluelargerthan0
(zero)andadd!importanttomakethisstyleruleoverridetheinlinestyledeclarationthatnormallyputs
thesectionbackgroundbehindtheMasterPageelements:
.page_mediabox img.ol_pdf_datamapper_input {
z-index: 10 !important;
}
Scaling the section background
Therulebelowdownscalesthesectionbackgroundimageandkeepsitinthecentreofthepage:
.page_mediabox img.ol_pdf_datamapper_input {
transform: translate(-50%, -50%) scale(1.5, 1.5) !important;
}
View selectors
IntheDesigner,sectionscanbeviewedondifferenttabs:Source,Design,Previewand-ifitisaWeb
section-Live.Ineachviewmode(exceptSource)aspecificCSSclassisaddedtothe<html>element.
Theview-specificclassesare:
l
.DESIGN
l
.PREVIEW
l
.OUTPUT
.OUTPUTisusedwhenviewingthecurrentsectionontheLivetaborinanexternalbrowser,andwhen
generatingoutput.
Page 829