Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Learn More

how to remove the small top margin, which appears only on the first page of printing

  • 2 απαντήσεις
  • 1 έχει αυτό το πρόβλημα
  • 456 προβολές
  • Τελευταία απάντηση από jrewing

more options

first i removed header and footer, and set the all margins to be found in about:config(Linux) or in Dialog (Windows) to zero.

On all html documents i get a little gap on the top of the first page, but not on the second one. The gap appears on paper print, on file print(PDF) and on preview - under firefox (17.0) for Linux and Windows. IE 8 on windows has other abnormalities, but equal top margin on all printed pages.

How can i remove this difference top margins between first page and the following once in firefox ?

first i removed header and footer, and set the all margins to be found in about:config(Linux) or in Dialog (Windows) to zero. On all html documents i get a little gap on the top of the first page, but not on the second one. The gap appears on paper print, on file print(PDF) and on preview - under firefox (17.0) for Linux and Windows. IE 8 on windows has other abnormalities, but equal top margin on all printed pages. How can i remove this difference top margins between first page and the following once in firefox ?

Τροποποιήθηκε στις από το χρήστη jrewing

Επιλεγμένη λύση

It seems the difference is the default 8px margin on the body element, which only appears the first page. To remove it on a case-by-case basis, you could use a bookmarklet (a snippet of script you run by clicking a bookmark entry).

To remove it automatically on every page, you could use a style rule in userContent.css or in a Stylish rule. I haven't tested this rule very extensively, but something like this:

@media print{
  body {margin-top:0 !important;}
}
Ανάγνωση απάντησης σε πλαίσιο 👍 2

Όλες οι απαντήσεις (2)

more options

Επιλεγμένη λύση

It seems the difference is the default 8px margin on the body element, which only appears the first page. To remove it on a case-by-case basis, you could use a bookmarklet (a snippet of script you run by clicking a bookmark entry).

To remove it automatically on every page, you could use a style rule in userContent.css or in a Stylish rule. I haven't tested this rule very extensively, but something like this:

@media print{
  body {margin-top:0 !important;}
}
more options

Yes - the default margin-top in body is responsible for this behavior. Thanks for your solutions.