Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

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>?

Toutes les réponses (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...