How to manage margins of print css

/* All margins set to 2cm */ @page { margin: 2cm; size: auto; /* auto is the initial value */ } /* Top margin on first page 10cm */ @page :first { margin-top: 10cm } @page :left { margin-left: 1cm; margin-right: 2cm; } @page :right { margin-left: 2cm; margin-right: 1cm; }