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

How to add page numbers #47

Open
wildwestrom opened this issue Jan 31, 2023 · 0 comments
Open

How to add page numbers #47

wildwestrom opened this issue Jan 31, 2023 · 0 comments

Comments

@wildwestrom
Copy link

I'm trying to dynamically add page numbers without the default browser styles applying, adding the title in the top two corners, date and time in the bottom right, and finally the page number in the bottom left.

This is the one solution I found that doesn't involve making HTML elements to manually split the document into pages.
https://www.smashingmagazine.com/2015/01/designing-for-print-with-css/#counters

@page {
	@bottom-center {
		content: counter(page) " of " counter(pages);
	}
}

Unfortunately it doesn't work. I might be missing some details about how this is supposed to work.

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

No branches or pull requests

1 participant