Pretraži podršku

Izbjegni prevare podrške. Nikad te nećemo tražiti da nas nazoveš, da nam pošalješ telefonski broj ili da podijeliš osobne podatke. Prijavi sumnjive radnje pomoću opcije „Prijavi zlouporabu”.

Learn More

HTML5 header not printing at top of every page

more options

I've created an HTML file that uses the new HTML5 tag <header>. But when I go to print that file from within Firefox 12, it only prints on the top of the first page rather than the top of every page as I would expect from a word processor. Or am I misunderstanding the purpose of <header>?

I've created an HTML file that uses the new HTML5 tag <header>. But when I go to print that file from within Firefox 12, it only prints on the top of the first page rather than the top of every page as I would expect from a word processor. Or am I misunderstanding the purpose of <header>?

Svi odgovori (3)

more options

The way Firefox (and, to be honest, all other browsers) currently implement the new HTML5 <header> tag there is no practical difference between <header> and <body>. Having the browser print the <header> at the top of every page of a printout would be immensely useful for report generation and would be the evident purpose behind the tag.

more options

I've read you can use "position:fixed; top:0;" to get an element to print on each page, but you would need to accommodate this somehow so content is not overwritten...