We would like to know how to set Max width on a td table cell.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
table {<!--from w w w.j a v a 2 s . c o m-->
width: 100%;
}
td {
border: 1px solid black;
}
td.leftcell {
width: 20px;
white-space: nowrap;
}
</style>
</head>
<body>
<table>
<tr>
<td class="leftcell">test testestestestest e</td>
<td>B</td>
<td>C</td>
</tr>
</table>
</body>
</html>
The code above is rendered as follows: