title: Styling headers printed on each page
body: <p>I recently discovered the CSS code to have supported browsers print <code>&lt;thead&gt;</code> blocks at the top of each page (using <code>display: table-header-group;</code> in <code>@media print {}</code>).  This greatly simplifies the code in my application for printing tables.  </p>
  
  <p>However, my client is very picky about styles.  It seems that the re-printed header groups lack some of the styles of the original headers, namely <code>border-bottom-style</code> and <code>border-bottom-width</code> to separate the headers from the table body.  Since this seems to be a hard requirement, I would like a way to be able to include these styles with those header groups.</p>
  
  <p>I've tried several different methods to try to force Firefox (our browser of choice) to print those styles to satisfy this condition, but none of these methods seem to produce the desired results.  Some examples that I've tried:</p>
  
  <pre><code>@media print {
      thead {
          display: table-header-group;
          border-bottom-style: solid;
          border-bottom-width: 3px;
      }
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;thead style="border-bottom-style: solid; border-bottom-width: 3px;"&gt;&lt;/thead&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>table.class thead {
      border-bottom-style: solid;
      border-bottom-width: 3px;
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>table.class th {
      border-bottom-style: solid;
      border-bottom-width: 3px;
  }
  </code></pre>
  
  <p>My question, then: is there a way to set styles on these reprinted header groups?  Or does the browser just use the rather spartan default table header styles (bold-faced text)?</p>
  
  <p>Please forgive me if this question has already been asked and answered.  I searched around but could not find anything about this particular issue.  There were many questions dealing with <code>display: table-header-group;</code> but none regarding styling those header groups.</p>