0 down vote favorite
share [fb] share [tw]
I am using following style to print header and footer for each page.
It's working properly, now I need to put page number in <tfoot> footer row like page 1 of 4.
Please help, how can I set page number?
<style type="text/css">
@media print {
thead { display: table-header-group; }
tfoot { display: table-footer-group; }
}
@media screen {
thead { display: block; }
tfoot { display: block; }
}
</style>
I tried this but it's not working:
@page :left {
@bottom-left {
content: counter(page);
}
}