We would like to know how to hide overflow text in table cell.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.table_class {<!--from www. ja v a 2s . co m-->
width: 20px;
}
.table_class div {
height: 2.5em;
overflow: hidden
}
</style>
</head>
<body>
<table border="3">
<tr>
<td class="table_class"><div>111111 222222 333333</div></td>
<td class="table_class">234</td>
</tr>
<tr>
<td class="table_class">2321</td>
<td class="table_class">ssS</td>
</tr>
</table>
</body>
</html>
The code above is rendered as follows: