I am trying to add footer on a HTML page. The HTML then printed and the footer should be on the bottom of every page. But, I got a problem.
There's a table generated in the HTML. The table row may need 2 or more pages to be displayed. The footer on the page with the table is overlapped with the table rows. How to fix this? My plan is to make the footer placed below bottom:0
, but then the footer is not even displayed. Are there any work around for this problem?
This is my footer:
<footer>
<div class='div_footer'>
<?php echo "This is footer"; ?>
</div>
</footer>
This is my CSS for printing:
@media print {
footer {
position: fixed;
bottom: 0;
}
}
EDIT:
this is a fiddle : http://jsfiddle.net/88mnq8xo/