Forum How do I...?

multi-line (or HTML in) header/footer

jerry1970
I tried to add a multi-line footer to a page by setting the @bottom-right to something like this (just a basic example):
content: "page:<br>"counter(page)

but the <br> was rendered literally.

Any way to do this?

Thanks,
Jerry
mikeday
You can use CSS character escapes, like this: "page:\A". In this case \A is hexadecimal for the U+000A NEWLINE character. You may also need to enable "white-space: pre" to ensure that the newline is not ignored.

If this seems too fiddly, another approach is to flow a block from the document up to the header, so you can use arbitrary markup.