title: Set margin/padding for each page to print (html/css)?
body: <p>I've a lot of contents on  page which i don't have control of where it breaks. And I've placed some contents using <code>position:fixed</code> on each page as header/footer but it overlap with  text. I tried to solve the overlapping using margin and padding in following two ways.</p>
  
  <p>When i added margin using @page</p>
  
  <pre><code>@page {
      margin: 2cm;
  }
  </code></pre>
  
  <p>It works on every page as it says, but my header and footer also taken away from margin.</p>
  
  <p>So I tried to adding margin using body tag</p>
  
  <pre><code>body {
      margin: 2cm;
      /* padding: 2cm; */
  }
  </code></pre>
  
  <p>it work by adding 2cm top margin on first page and 2cm bottom margin on last page. But not in between pages.</p>
  
  <p>Is it possible to set margin/padding each page?</p>