title: DomPDF does not render table nicely
body: <p>I am trying to get PDF using DomPDF but I come cross a strange problem. All the data and other things are fine but when it renders in PDF the first line of the table is always out of style. Firstly, I though may be table is going to the next page which cause style out of context but I tried to limit table to one page and found out that the problem still exists. So, the first row of table on every page goes crazy. Following is my code and screen shots of PDF.</p>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>$dompdf = new DOMPDF();
  $dompdf-&gt;load_html($listing);
  $dompdf-&gt;set_paper('a4', 'landscape');
  $dompdf-&gt;render();
  $dompdf-&gt;stream("sample.pdf");
  </code></pre>
  
  <p><strong>View</strong></p>
  
  <pre><code>&lt;table class="table table-bordered"&gt;
      &lt;tr&gt;
          &lt;th width="150"&gt;Client &lt;/th&gt;
          &lt;td&gt;Client Name &lt;/td&gt;
      &lt;/tr&gt;
  
      &lt;tr&gt;
          &lt;th&gt;Site &lt;/th&gt;
          &lt;td&gt;&lt;?php print $site-&gt;title; ?&gt;&lt;/td&gt;
      &lt;/tr&gt;
  
      &lt;tr&gt;
          &lt;th&gt;Address &lt;/th&gt;
          &lt;td&gt;
              &lt;?php 
                  print $site-&gt;unit.' '.
                  $site-&gt;street.' '.
                  $site-&gt;suburb.' '.
                  $site-&gt;state.' '.
                  $site-&gt;location; 
              ?&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  
      &lt;tr&gt;
          &lt;th&gt;Post Code &lt;/th&gt;
          &lt;td&gt;&lt;?php print $site-&gt;postcode; ?&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;th colspan="2"&gt; Site Information&lt;/th&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td colspan="2" height="150"&gt; &lt;?php print $site-&gt;site_information; ?&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;th colspan="2"&gt;Work Instruction&lt;/th&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td colspan="2" height="200"&gt; &lt;?php print $site-&gt;work_instruction; ?&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;th colspan="2"&gt;Equipment on Site&lt;/th&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td colspan="2"&gt; &lt;?php print $site-&gt;site_equipment; ?&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;th colspan="2"&gt;Special Instructions&lt;/th&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td colspan="2" height="100"&gt; &lt;?php print $site-&gt;special_instruction; ?&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;th&gt;Contact Person &lt;/th&gt;
          &lt;td&gt;&lt;?php print $site-&gt;contact_person; ?&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;th&gt;Contact Number &lt;/th&gt;
          &lt;td&gt;&lt;?php print $site-&gt;contact_no; ?&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p><strong>Page 1:</strong>
  <img src="https://i.stack.imgur.com/4odUF.png" alt="enter image description here"></p>
  
  <p><strong>Page 2:</strong>
  <img src="https://i.stack.imgur.com/gVUBH.png" alt="enter image description here"></p>
  
  <p>Any help will be highly appreciated.
  Thanks</p>