I want to make footers on the print HTML pages

<STYLE TYPE="text/css"> @media print { @page:left{ @bottom-left { content: "Page " counter(page) " of " counter(pages); } } } </STYLE> 

Why it does not work, or am I doing something wrong?

    1 answer 1

    Your question has already been.

    https://stackoverflow.com/questions/6664752/how-to-add-print-headers-and-footers-in-html-css-and-javascript or https://stackoverflow.com/questions/6664752/how- to-add-print-headers-and-footers-in-html-css-and-javascript

    There is no direct solution. You can use tables with a fixed height, which of course is not convenient in terms of editing the content, or use pdf where you can control how the page looks.

    • And the option to use the markup of the form above is not? princexml.com/doc/9.0/page-numbers - Nina Voros
    • w3.org/TR/CSS21/page.html#page-box - it seems like there is such a specification for CSS .... - Nina Voros
    • generally understandable! then two questioned — not to duplicate — does it make sense to delete the question? in what free way to generate the simplest PDF using php, it is desirable that it simply convert HTML-> PDF, i.e. I submit HTML markup, and it normally displays as a PDF file - Nina Voros
    • Regarding the simplest generator, as he did not come across himself, but this is a very trite topic on the Internet - jelu.ru/2009/11/11.html , or on a habr for example - habrahabr.ru/post/31438 - Oleg Grechishkin