We would like to know how to limit a table cell to one line of text.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
td {<!-- www . j ava 2s . c o m-->
white-space: nowrap;
overflow: hidden;
width: 10px;
height: 25px;
border: 1px solid black;
}
table {
table-layout: fixed;
width: 200px;
}
</style>
</head>
<body>
<table>
<tr>
<td>lorem ipsum here</td>
<td>lorem ipsum here</td>
<td>lorem ipsum here</td>
<td>lorem ipsum here</td>
</tr>
</table>
</body>
</html>
The code above is rendered as follows: