I searched a lot before asking here, but did not find the answer to my question.
I want to insert the top and bottom margins for a page of my site when printing, so I used the usual margin-top and margin-bottom for the print div, but this only affected the first sheet! so I used this as described in W3C CSS2.1. Specification:
@page { margin-top: 5cm; margin-bottom: 5cm; }
but does not affect previewing Firefox or printing to PDF. so how can i insert the upper and lower margins (for each print sheet) through CSS? or is there any trick to do this in Firefox?
html css printing
Anass ahmed
source share