We would like to know how to make fixed width td for data without space.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
table {<!-- w ww . ja v a2 s .c om-->
table-layout: fixed;
border-spacing: 0;
border-collapse: collapse;
}
table td {
width: 40px;
padding: 4px;
border: solid 1px red;
word-break: break-all;
}
</style>
</head>
<body>
<table>
<tr>
<td>Text with spaces</td>
<td>TextWithoutAnySpaces</td>
</tr>
</table>
</body>
</html>
The code above is rendered as follows: