I have a print context where I divided the page into 2 parts with divs:
<div id="invoiceHeader" anchor="page_media_0" style="width: 756px; height: 516px; top: 0px; left: 0px; position: absolute; padding-right: 38px;" offset-x="0" offset-y="0"></div> <div id="invoiceFooter" anchor="page_media_0" style="position: absolute; overflow: hidden; box-sizing: border-box; width: 718px; height: 125px; top: 998px; left: 37.8px;" offset-x="37.8" offset-y="998"> </div>
When I want to have a text that is positioned at the top of the footer I could create a div with a style “position: absolute; top: 0px”. This will work as long as I keep the footer div lined up with the margins defined in the Master page.
But there is also the option to resize the margins in a post pagination script.
Is there a way to create a div that aligns perfectly with the footer when I change it in a post pagination script so I can have a block of text that is aligned to the top of the footer when I resize it dynamically?