CSS Print Mode - Div at the bottom of the last page

I have an HTML page with a CSS print layout where I want one of the divs to always appear at the bottom of the final printed page without overlapping any of the other pages.

I tried various things, including position: fixed; bottom: 0; but when converting to PDF with iText, this div was in the same position on each page.

Thanks.

+4
source share
2 answers

Have you tried the sticky footer? Always worked for me (IE / FF / Webkit)

http://ryanfait.com/sticky-footer/

+1
source

How about: maximum height and minimum height are the same for the print page, and div is absolute below 0?

+1
source

Source: https://habr.com/ru/post/1380000/


All Articles