title: Printing tables with forced page breaks
body: <p>I have a long table with hundreds of rows. To print the table headers on each page, I am using THEAD {display: table-header-group} to style the table. And it works as expected in Firefox and IE9. But when I try to force the page breaks as shown in below code, it doesn't work in IE9. With IE9, the table headers get printed only the pages where the table breaks naturally.</p>
  
  <p>Here is the code snippet - </p>
  
  <pre><code>CSS: 
  @media print {
      thead { display: table-header-group; }
  }
  
  HTML/PHP:
      &lt;table&gt;
        &lt;thead&gt;
          &lt;tr&gt;
             &lt;th&gt;Header 1&lt;/th&gt;
                 &lt;th&gt;Header 2&lt;/th&gt;
                 &lt;th&gt;Header 3&lt;/th&gt;        
             &lt;/tr&gt;
        &lt;/thead&gt;
        &lt;tbody&gt;
             &lt;?php 
             foreach ($items as $item) {
                 echo  " &lt;tr&gt; " ;
                    echo  "&lt;td&gt;text&lt;/td&gt;" ;
                    echo  "&lt;td&gt;text&lt;/td&gt;" ;
                    echo  "&lt;td&gt;text&lt;/td&gt;" ;
  
                    if ($condition) {
                        echo  "&lt;/tr&gt;" ;
  
                        echo  "&lt;tr style='page-break-after:always;'&gt;" ;
                        echo  "&lt;/tr&gt;" ;
                    }
             }
             ?&gt;
         &lt;/tbody&gt;
      &lt;/table&gt;
  </code></pre>
  
  <p>Will greatly appreciate any help on this.</p>
  
  <p>Thanks.</p>