title: dompdf HTML to PDF - can't set margin of page
body: <p>version: 0.6.0 beta 3</p>
  
  <p>I tryed in every manner to make dompdf set the margin of the page. I have a long page with a lot of text, divided in chapters...</p>
  
  <p>my css is something like:</p>
  
  <pre><code>#wrapper{
      padding:8px;
  }
  
  /* other styles... */
  
  @page{margin: 0.2in 0.5in 0.2in 0.5in;}
  </code></pre>
  
  <p>when the php is</p>
  
  <pre><code>&lt;?php
  ob_start(); // begin collecting output
  include 'makemypdf.php'; // this page output the html
  $html = ob_get_clean(); // retrieve output from makemypdf.php and stop buffering
  
  
  require_once("dompdf/dompdf_config.inc.php");
  
  $dompdf = new DOMPDF();
  $dompdf-&gt;load_html($html);
  $dompdf-&gt;render();
  $dompdf-&gt;stream("sample.pdf", array("Attachment" =&gt; false));
  
  ?&gt;
  </code></pre>
  
  <p>but what I get is a page with NO margins!!! only the padding of the #wrapper are applied... and they are applyed only at the beginning and at the end of the entire PDF...</p>
  
  <p>I'm doing something wrong?</p>
  
  <p>PS - it seems that only the bottom-margin is applied... but I'm not sure...</p>
  
  <p>PPS - I tryed with no success also this css:
      body {
          margin-top: 40px;
      }
      html {
          margin-top: 40px;
      }
      @page {
          margin-top: 40px;
      }</p>