please help, I have a html table , without changing the layout and responsive behavior - i want to make table header fixed - please suggest
https://codepen.io/shaswat/pen/EbwPNK
here want to implement table header and responsiveness of the table both together . which is not working
while scrolling down -- 3 headers and the table head should get fixed .
.rg-container {
font-family: 'Lato', Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 1.4;
margin: 0;
padding: 1em 0.5em;
color: #222;
}
.rg-header {
margin-bottom: 1em;
text-align: left;
}
.rg-header>* {
display: block;
}
<h1>Some more Header information</h1>
<h2>Some more Header information</h2>
<h3>Header
<div>
<div class='rg-container'>
<div class='rg-content'>
<table class='rg-table'>
<thead>
<tr>
<th class='text '>id</th>
<th class='text '>somcol</th>
<th class='text '>biggger id</th>
<th class='text '>another id</th>
<th class='text '>med col</th>
<th class='text '>med col</th>
</tr>
</thead>
<tbody>
<tr class=''>
<td class='text ' data-title='id'>id</td>
<td class='text ' data-title='somcol'>somcol</td>
<td class='text ' data-title='biggger id'>biggger id</td>
<td class='text ' data-title='another id'>another id</td>
<td class='text ' data-title='med col'>med col</td>
<td class='text ' data-title='med col'>med col</td>
<td class='text ' data-title='sheet'>sheet</td>
<td class='text ' data-title='sheet'>sheet</td>
<td class='text ' data-title='anotherbigcoloumn'>another big coloumn</td>
<td class='text ' data-title='small'>small</td>
</tr>
</tbody>
</table>
</div>
</div>