Last active
May 16, 2017 14:07
-
-
Save MarcosBL/5cf55d7733e011ec4d23fbbfb4c14fa5 to your computer and use it in GitHub Desktop.
DomPDF page footers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style> | |
p { page-break-after: always; } | |
.footer { position: fixed; bottom: 0px; } | |
.pagenum:before { content: counter(page); } | |
</style> | |
</head> | |
<body> | |
<div class="footer">Page: <span class="pagenum"></span></div> | |
<p>lorem ipsum ...</p> | |
<p>lorem ipsum ...</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment