I want to include the page title in the footer of every printed page, but I can't figure out how to do it. Basically, I'm expecting to have to do something like this:
@page {
@bottom-right {
content: attr(title);
}
}
But of course that doesn't work. AFAICS, I either need to set an attribute on @page
that I can reference using attr
, or I need to use some other method to refer to specific content (i.e. title
in my page). I am using the same CSS on multiple pages with different titles, so I can't just hard code it.