title: Set margins on print - @media print not working
body: <p>When I load my page I set the margin of the container div with Javascript to avoid that the page 'jumps' when the scrollbar shows. Hence, the default value is auto - but the actual value is defined with JS</p>
  
  <p>However, when I then want to print the page, I would like the margins to be set back to auto (or some chosen value)</p>
  
  <p>I have tried with:</p>
  
  <pre><code>@media print { .container { margin: 0px; }}
  @page { .container { margin: 0mm 0mm 0mm 0mm; }}
  </code></pre>
  
  <p>And with an independent style sheet for media="print" with:</p>
  
  <pre><code>.container { margin: 0px; }
  </code></pre>