I am converting an Access application to the Internet and must print reports from it. These are letters sent by mail, so the bottom of the letter, which is the "please come back" part, will always be at the bottom of the page, no matter how large the text of the letter is. I used the DIV to lay out emails and simulate Access quite well, but I donβt know how to get each email header at the bottom of my page. Using CSS position: fixed; for a footer, only each footer is displayed at the bottom of each page, and we would like to be able to print several letters at once.
If I delete fixed , it will display each footer on its own page, they will not be aligned at the bottom.
Can I get a cake and eat it? No need to be a cross browser, and I will go to PDF if it is absolutely necessary, but what are my options in CSS / HTML? Somehow it all turned into a table and tried tfoot? But will this make it appear at the bottom of every page?
Edit: CSS / HTML sample:
.reportcontainer { width: 100%; page-break-inside: avoid; page-break-after: always; position: relative; } .reportbody { float: left; text-align: left; } .reportfooter { width: 100%; float: left; bottom: 0; position: fixed; } <div class="reportcontainer"> <div class="reportbody"> yadda yadda yadda </div> <div class="reportfooter"> stuff goes here </div> </div>
html css printing
Andrew
source share