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

Printing in landscape orientation and page sizes

more options

Firefox has been good to me and i love it. Been using it as my primary web dev browser but it has increasingly been brought to my attention the need for better CSS Print media implementations. I would love to know how I can set the page to be printed in landscape orientation via CSS. Also is it possible to set page sizes via CSS?

Firefox has been good to me and i love it. Been using it as my primary web dev browser but it has increasingly been brought to my attention the need for better CSS Print media implementations. I would love to know how I can set the page to be printed in landscape orientation via CSS. Also is it possible to set page sizes via CSS?

Toutes les réponses (1)

more options

Firefox doesn't support setting the size property for @page (per https://caniuse.com/#feat=css-paged-media ), so you can't specify orientation or paper size in Firefox. However, in my view, there's no harm using these features for users of Chrome/Opera/Edge while we all wait.

Of course, if layout is critical, you may want to consider generating PDFs for your site visitors.