Trying to add horizontal scrolling to a div that contains two separate divs, each with a width of approximately 4080px. One of the divs holds a table with headers, while the other div has <td>
elements in <tr>
. I need to enable vertical scrolling on the second div so that I can view the entire table data.
<div class="CodeMirror cm-s-default CodeMirror-wrap">
<div class="CodeMirror-vscrollbar" cm-not-content="true" style="display: block; bottom: 0px;overflow-y: hidden;">
<div id="Table">
<!--<div class="CodeMirror cm-s-default CodeMirror-wrap" style="height: 50px;">-->
<!--<div class="CodeMirror-vscrollbar" cm-not-content="true" style="height: 50px;overflow-x: hidden;overflow-y: hidden;">-->
<!--<div style="width: 100%;">-->
<table >
<tr>
&...
</tr>
</table>
<!--</div>-->
<!--</div>-->
<!--</div>-->
<div class="CodeMirror-vscrollbar" [class.tableDiv]=hideDiv id="small" cm-not-content="false" style="display: block;width: 100%;bottom: 0px;overflow-x: hidden;">
<table >
<tr *ngFor="let obj of podData;let i=index">
<td style="border: 1px solid black;text-align:center"><div style="width: 82px;">{{obj.ZoneName}}</div></td>
...
</th>
...
</table>
</div>
</div>
</div>