I want to print my html page. I have more than 1 page and I want print my footer only at the bottom of the last page. My css
@page {
size: 8.5in 11.0in;
margin-left: 0.7cm;
margin-top: 0.7cm;
margin-top: 0.7cm;
margin-bottom: 2.6cm;
margin-right: 0.5cm
}
#footer {
clear: both;
position: running(footer);
z-index: 10;
margin-top: -1em;
vertical-align: bottom;
height: 5%;
}
@page {
@bottom-center {
content: element(footer);
}
}
HTML:
<body><div id="content"></div>
<div id="footer"></div>
<body>
It works, but when I have very big table in the end my content, for example 6 pages table, my footer populates for all pages with table.