-
-
Notifications
You must be signed in to change notification settings - Fork 712
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
Is it possible to hide elements on the first page (example: footer)? #474
Comments
You can use named pages, as mentioned in this issue: #511. If you have the ability, you could define your first page in a separate section or block, plug in its unique data, and give it a break after property. |
It's right, using named pages as explained should be enough. |
I'm not able to get it. can you please explain a Lil bit? @MindFluid |
I'm not able to get it too. Any ideas? |
You can use named pages (or just |
How though? This doesn't work: @page :first .header {
display: none;
} I need the first page not to have a header. |
You can take a look at what’s done in the Report sample. The header is repeated on some but not all pages. |
Is it possible to hide elements on the first page of the generated PDF? I have some footer elements that repeat on every page. I would like to hide them on the first page.
I tried the @page :first selector like so:
However, running weasyprint emits:
(67:13 corresponds to the above CSS)
The text was updated successfully, but these errors were encountered: