Note that there are some explanatory texts on larger screens.

plurals
  1. POHow get header of the table fixed ?
    primarykey
    data
    text
    <p>How get header of the table fixed while the table data is scrolling down via jquery ! the height of the table fixed </p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;style type="text/css"&gt; &lt;table class="fx"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;th&gt;Email ID&lt;/th&gt; &lt;th&gt;Time Taken to complete game (secs)&lt;/th&gt; &lt;th&gt;Email ID&lt;/th&gt;&lt;th&gt;Time Taken to complete game (secs)&lt;/th&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/div&gt; &lt;table class="data"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;asd@gmail.com&lt;/td&gt; &lt;td&gt;449&lt;/td&gt; &lt;td&gt;asd@gmail.com&lt;/td&gt; &lt;td&gt;449&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;tr&gt; &lt;td&gt;sad@gmail.com&lt;/td&gt; &lt;td&gt;449&lt;/td&gt;&lt;td&gt;asd@gmail.com&lt;/td&gt; &lt;td&gt;449&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;tr&gt; &lt;td&gt;as@gmail.com&lt;/td&gt; &lt;td&gt;449&lt;/td&gt; &lt;td&gt;asd@gmail.com&lt;/td&gt; &lt;td&gt;449&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; table tbody { display: block; height: 262px; overflow: auto; } table { table-layout: fixed; height: 100px; overflow: auto; padding: 10px; } table tr{ background-color: #F5F5F5; } table tr:nth-child(odd){ background-color: #eee; } table tr:nth-child(even){ background-color: #F5F5F5; } table tr td{ padding:10px; width: 200px; max-width: 200px; word-wrap:break-word; height: auto; text-align: center; color:#5d8d5d; } .fx{ position: fixed; top: 0; left: 0; } .fx tr th { padding:10px; background-color: #ddd; width: 200px; color:#6d4d9d; text-align: center; } .data{ margin-top: 70px; } div{ position: relative; } *{ margin: 0; padding: 0; } &lt;/style&gt; &lt;div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>How get header of the table fixed while the table data is scrolling down via jquery ! the height of the table need urgently</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.
 

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