Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Try this:</p> <p>HTML:</p> <pre><code>&lt;body&gt; &lt;div id="containerdiv" style="width: 800px"&gt; &lt;table id="dynamictable"&gt; &lt;tr&gt; &lt;td style="width: 100px"&gt; ID &lt;/td&gt; &lt;td style="width: 300px"&gt; Title &lt;/td&gt; &lt;td style="width: 300px"&gt; Media Title &lt;/td&gt; &lt;td&gt; Broadcast Time &lt;/td&gt; &lt;td&gt; Destination &lt;/td&gt; &lt;td&gt; Channel &lt;/td&gt; &lt;td&gt; Start Time &lt;/td&gt; &lt;td&gt; End time &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;div class="scroll"&gt; &lt;table id="tablebody"&gt; &lt;tr id="0"&gt; &lt;td style="width: 100px"&gt; ID: 0 &lt;/td&gt; &lt;td style="width: 300px"&gt; Some Content &lt;/td&gt; &lt;td style="width: 300px"&gt; Some more contents &lt;/td&gt; &lt;td&gt; Some more contents contents contents &lt;/td&gt; &lt;td&gt; Some more contents contents contents &lt;/td&gt; &lt;td&gt; Some more contents contents contents &lt;/td&gt; &lt;td&gt; Some more contents contents contents &lt;/td&gt; &lt;td&gt; Some more contents contents contents &lt;/td&gt; &lt;/tr&gt; &lt;tr id="1"&gt; &lt;td style="width: 100px"&gt; ID: 1 &lt;/td&gt; &lt;td style="width: 300px"&gt; Some Content &lt;/td&gt; &lt;td style="width: 300px"&gt; Some more contents &lt;/td&gt; &lt;td&gt; Some more contents contents contents &lt;/td&gt; &lt;td&gt; Some more contents contents contents &lt;/td&gt; &lt;td&gt; Some more contents contents contents &lt;/td&gt; &lt;td&gt; Some more contents contents contents &lt;/td&gt; &lt;td&gt; Some more contents contents contents &lt;/td&gt; &lt;/tr&gt; &lt;tr id="Tr1"&gt; &lt;td style="width: 100px"&gt; ID: 1 &lt;/td&gt; &lt;td style="width: 300px"&gt; Some Content &lt;/td&gt; &lt;td style="width: 300px"&gt; Some more contents &lt;/td&gt; &lt;td&gt; Some more contents contents contents &lt;/td&gt; &lt;td&gt; Some more contents contents contents &lt;/td&gt; &lt;td&gt; Some more contents contents contents &lt;/td&gt; &lt;td&gt; Some more contents contents contents &lt;/td&gt; &lt;td&gt; Some more contents contents contents &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; </code></pre> <p>CSS:</p> <pre><code> table { /*background-color: #aaa;*/ width: 780px; } .scroll { height: 200px; width: 800px; overflow: scroll; overflow-x: hidden; border: 1px solid #ccc; } #dynamictable { font-weight: bold; } } </code></pre> <p><a href="http://jsfiddle.net/zyjSf/4/" rel="nofollow">http://jsfiddle.net/zyjSf/4/</a></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. VO
      singulars
      1. This table or related slice is empty.
    2. 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