title: How to print a large HTML table with page breakers?
body: <p>I want to print a large HTML table without breaking it's rows at the end of each page. I used following code, but its not working. </p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;title&gt;Untitled Document&lt;/title&gt;
  &lt;/head&gt;
  &lt;style&gt;
  @media print
  {
    table { page-break-after:auto }
    tr    { page-break-inside:avoid; page-break-after:auto }
    td    { page-break-inside:avoid; page-break-after:auto }
    thead { display:table-header-group }
    tfoot { display:table-footer-group }
  }
  &lt;/style&gt;
  
  &lt;body&gt;
  &lt;table border="1"&gt;
   &lt;?php
   for($i=0;$i&lt;50;$i++){
   ?&gt;
  
  
  
    &lt;tr&gt;
          &lt;td height="50" width="130"&gt;gukgu&lt;/td&gt;
          &lt;td height="50" width="180" height="50" width="145"&gt;gukgu&lt;/td&gt;
          &lt;td height="50" width="130"&gt;gukgu&lt;/td&gt;
          &lt;td height="50" width="180" height="50" width="145"&gt;gukgu&lt;/td&gt;
   &lt;/tr&gt;
    &lt;?php
    }
     ?&gt;
  &lt;/table&gt;   
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Can somebody help?</p>