Reputation: 27689
How can you put an overflow property on a cell in a table?
table {
width:100px;
height:100px;
}
td.content {
overflow:auto;
}
<table>
<tr>
<td>hmm</td>
</tr>
<tr>
<td class="content">
sadfasf<br>
sadfasf<br>
sadfasf<br>
sadfasf<br>
sadfasf<br>
sadfasf<br>
sadfasf<br>
sadfasf<br>
sadfasf<br>
sadfasf<br>
sadfasf<br>
</td>
</tr>
<tr>
<td>hmm</td>
</tr>
</table>
Upvotes: 2
Views: 111
Reputation: 895
you just simply add
display:inline-block;
into the td , like this
id.content
{
display:inline-block;
overflow:auto;
}
Upvotes: 1