Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider adding dynamic page numbers #17

Open
ocram opened this issue Apr 5, 2022 · 1 comment
Open

Consider adding dynamic page numbers #17

ocram opened this issue Apr 5, 2022 · 1 comment

Comments

@ocram
Copy link
Contributor

ocram commented Apr 5, 2022

html, body {
	counter-reset: hsop-page-number;
}
.page {
	position: relative;
}
.page::after {
	position: absolute;
	bottom: 10mm;
	left: 0;
	width: 100%;
	display: inline-block;
	counter-increment: hsop-page-number;
	content: "Page " counter(hsop-page-number);
	font-size: 8pt;
	text-align: center;
}
@raduchiriac
Copy link

@ocram I might be wrong but after many trial and error this is will not work in @media print.
The text goes into the text. Some height + position:relative related issues maybe?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants