HTML - enable scrolling in a table cell

Say I have a table cell with a fixed width and height .... and I have data that exceeds the fixed cell sizes ...

<td width="500" height="300">lots of data that exceeds the dimensions</td> 
  • Is it possible to enable scrolling of this data in a cell ....
  • if not, what is the solution. I have only 500 x 300 .
+6
html html-table scroll cell
source share
1 answer

The easiest thing is to add a 500 x 300 div and give it overflow: auto

 <td width="500" height="300"> <div style="width: 500px; height: 300px; overflow: auto"> lots of data that exceeds the dimensions </div> </td> 
+18
source share

All Articles