Alex Rivera | Logout

overflow:scroll; in <td>

Asked 2009-07-31T08:27:53.280
29

Why does the CSS property overflow:scroll; not work in <td>, while overflow:hidden; works well?

<table border="1" style="table-layout:fixed; width:100px">
  <tr>
    <td style="overflow:scroll; width:50px;">10000000000000000000000000000000000</td>
    <td>200</td>
    <td>300</td>
  </tr>
</table>

From the CSS specs1,2, I can't see why.

Edit
Report

1 Answer

15

Firstly provide desired height to td and then Apply "float: left" property to respective "td" you want scrollbar to appear.

answered 2013-01-08T09:38:32.077

Your Answer