Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>After a lot of research to figure out all of my options for this I opted for going with separate tables for the header, body and footer and I surround each table with a div. I then style that div as a "pane". As long as the columns in the header table and the body table are set as the same width, they will line up.</p> <p>There was some cleanup I had to do, one of which resulted in needing to keep the vertical scrollbar always showing, and then add a margin to the header and footer tables so that if the body starts to scroll or not, the headers will always line up.</p> <p>It would be something like this:</p> <pre><code> &lt;div class="pane table-head"&gt; &lt;table&gt; &lt;thead class=""&gt; &lt;tr&gt; &lt;th&gt;Header&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;/table&gt; &lt;/div&gt; &lt;div class="pane table-body fill"&gt; &lt;table&gt; &lt;tbody&gt; &lt;tr&gt;&lt;td&gt;Text&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Text&lt;/td&gt;&lt;/tr&gt; ... &lt;/tbody&gt; &lt;/table&gt; &lt;/div&gt; &lt;div class="pane table-foot"&gt; &lt;table&gt; &lt;tfoot&gt; &lt;tr&gt; &lt;th&gt;Footer&lt;/th&gt; &lt;/tr&gt; &lt;/tfoot&gt; &lt;/table&gt; &lt;/div&gt; </code></pre> <p>See updated JSFiddle: <a href="http://jsfiddle.net/bluecaret/va4HF/5/" rel="nofollow">http://jsfiddle.net/bluecaret/va4HF/5/</a></p> <p>This still isn't an ideal solution, I may end up ditching this and go with Fabio's solution of a div based table, although I can see potential issues with that as well based on some tests. For now this is what I'll be sticking with.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload