Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I've encountered this problem very recently. Unfortunately, I had to do 2 tables, one for the header and one for the body. It's probably not the best approach ever but here goes:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;oh hai&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;table id="tableHeader"&gt; &lt;tr&gt; &lt;th style="width:100px; background-color:#CCCCCC"&gt;col header&lt;/th&gt; &lt;th style="width:100px; background-color:#CCCCCC"&gt;col header&lt;/th&gt; &lt;/tr&gt; &lt;/table&gt; &lt;div style="height:50px; overflow:auto; width:250px"&gt; &lt;table&gt; &lt;tr&gt; &lt;td style="height:50px; width:100px; background-color:#DDDDDD"&gt;data1&lt;/td&gt; &lt;td style="height:50px; width:100px; background-color:#DDDDDD"&gt;data1&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style="height:50px; width:100px; background-color:#DDDDDD"&gt;data2&lt;/td&gt; &lt;td style="height:50px; width:100px; background-color:#DDDDDD"&gt;data2&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt;</code></pre> </div> </div> </p> <p>This worked for me, it's probably not the elegant way but it does work. I'll investigate so see if I can do something better, but it allows for multiple tables.</p> <p>Go read on the <a href="http://www.w3schools.com/cssref/pr_pos_overflow.asp" rel="nofollow noreferrer">overflow</a> propriety to see if it fits your need</p>
    singulars
    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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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