Page Widget How to - Break table content by word








Question

We would like to know how to break table content by word.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
table {<!--from   w  ww .  ja  v a  2s  .c om-->
  width: 200px;
  word-wrap: break-word;
  table-layout: fixed;
}
</style>
</head>
<body>
  <table>
    <td>Pneumonoultramicroscopicsilicovolcanoconiosis</td>
  </table>
</body>
</html>

The code above is rendered as follows: