As title. My table is displayed using DIVs like this…
<div id='MyTable' style='display:table;'>
<div id='MyTHead' style='display:table-header-group;'>
<div style='display:table-row;'>
<div style='display:table-cell;'>THA</div>
<div style='display:table-cell;'>THB</div>
</div>
</div>
<div id='MyTBody' style='display:table-row-group;width:100%;height:100%;'>
<div style='display:table-row;'>
<div style='display:table-cell;'>TD1A</div>
<div style='display:table-cell;'>TD1B</div>
</div>
<div style='display:table-row;'>
<div style='display:table-cell;'>TD2A</div>
<div style='display:table-cell;'>TD2B</div>
</div>
</div>
</div>
There are 2 rows in my div play as TBODY. In my developing system. Amount of rows in that div will change by user query. I've read (HTML table with 100% width, with vertical scroll inside tbody) but that table use real element not by div. I also use jQuery to dynamically set the max-height of 'MyTBody' at initialization and window.resize but no effects. How could I make a scroll on 'MyTBody' if too many rows in 'MyTBody' div?