Horje
table fixed header Code Example
table fixed header
.tableFixHead thead th { position: sticky; top: 0; }
html table scrollable body fixed header
/*Simply*/  position:sticky; top: 0; /*your th elements*/
table fixed header
<div class="tableFixHead">
  <div style="overflow-x:auto;">
<TABLE class="w3-table w3-striped w3-bordered w3-border w3-white">
    <thead>
      <tr><th>TH 1</th><th>TH 2</th></tr>
    </thead>
    <tbody>
      <tr><td>A1</td><td>A2</td></tr>
      <tr><td>B1</td><td>B2</td></tr>
      <tr><td>C1</td><td>C2</td></tr>
      <tr><td>D1</td><td>D2</td></tr>
      <tr><td>E1</td><td>E2</td></tr>
    </tbody>
  </table>
</div>
table fixed header
.tableFixHead          { overflow: auto; height: 100px; }
.tableFixHead thead th { position: sticky; top: 0; z-index: 1; }

/* Just common table stuff. Really. */
table  { border-collapse: collapse; width: 100%; }
th, td { padding: 8px 16px; }
th     { background:#eee; }
table fixed header
table tbody { display:block; max-height:450px; overflow-y:scroll; }
table thead, table tbody tr { display:table; width:100%; table-layout:fixed; }




Csharp

Related
get property value from object c# Code Example get property value from object c# Code Example
C# decimal with two places store as string with two places Code Example C# decimal with two places store as string with two places Code Example
unity quit in edtor Code Example unity quit in edtor Code Example
C# type cast float to string Code Example C# type cast float to string Code Example
unity find child by name Code Example unity find child by name Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11