HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › Positioning – bottom ignored › Re: Re: Positioning – bottom ignored
April 3, 2012 at 09:42
#28697
After further testing I’ve hit another problem that I can’t seem to resolve. For some reason the absolute positioning is effected by the page margin settings.
For instance if I have 5 pages each with an overlayed div which is absolutely positioned to bottom:0, for each page the absolutely positioned div moves up the page by around the same amount that the PDF margin is.
Example code:
<style type="text/css"> #container {float:left; width:1000px; height:640px; position:relative; background:#ccc} #innerBottom {width:700px; height:200px; position:absolute; bottom:0; background:#cc0000} </style>
<div id="container"> <img alt="Image from the forum topic: Positioning – bottom ignored" src="./horiz-report_files/image1-h640.jpg" style="width:1000px; height:640px" /> <div id="innerBottom"> this is absolute bottom </div> </div> <div id="container"> <img alt="Image from the forum topic: Positioning – bottom ignored" src="./horiz-report_files/image1-h640.jpg" style="width:1000px; height:640px" /> <div id="innerBottom"> this is absolute bottom </div> </div> <div id="container"> <img alt="Image from the forum topic: Positioning – bottom ignored" src="./horiz-report_files/image1-h640.jpg" style="width:1000px; height:640px" /> <div id="innerBottom"> this is absolute bottom </div> </div> <div id="container"> <img alt="Image from the forum topic: Positioning – bottom ignored" src="./horiz-report_files/image1-h640.jpg" style="width:1000px; height:640px" /> <div id="innerBottom"> this is absolute bottom </div> </div> <div id="container"> <img alt="Image from the forum topic: Positioning – bottom ignored" src="./horiz-report_files/image1-h640.jpg" style="width:1000px; height:640px" /> <div id="innerBottom"> this is absolute bottom </div> </div>
Any idea if I’m able to get it bottom aligned to the containing DIV for each slide?
