I tried to use this to display scrollbar in both the vertical and horizontal direction.
<td style=“width: 15%; white-space:nowrap; overflow:auto”>some long texts here</td>
But it will be always expand the length and not displaying the scroll bar in the horizontal direction.
How to show scrollbar in the table and <td>?
Give the cell a fixed height
Set table-layout:fixed; to force the table to keep the dimensions.
Or put a div inside the <td> and put the content inside that with a width/overflow.
I tried to put a div inside the <td>, but it’s not working. To put table-layout:fixed, it’s working in Firefox, but not IE.
Well did you give the div a fixed height and overflow:auto;? Otherwise it should work.