Forum How do I...?

How do I change the footer of the last page of a named page?

steelwater
At the last page of @page 'content-page' I want to show a different footer '.footer2'

@page content-page {
@bottom {
content: flow(footer);
}
}

footer {
-prince-flow: static(footer, start);
}

.footer2 {
/*css to show at the last page of @page content-page */
}
howcome
Here's an example of how to change a header (or footer) on the last page:

https://css4.pub/2023/running-headers#changing-header-on-last-page

The mechanism is quite generic, you can change the running header/footer on any page using this technique. To make it appear on the last page, just insert the running element after the last element.


Edited by howcome

steelwater
Thanks, howcome. I will try this solution and post here the result.