Page Widget How to - Break long text








Question

We would like to know how to break long text.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
#description {<!--   ww w  . j a  v  a2 s .  c o m-->
  border: 1px solid #BBBBBB;
  width: 200px;
  word-wrap: break-word;
}
</style>
</head>
<body>
  <div id="description">12345678912345678912345634589</div>
</body>
</html>

The code above is rendered as follows: