Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style>
body {
  background-color:#E7E9EB;
}
#myDIV {
  height:300px;
  background-color:#FFFFFF;
}
.ex1 {
  background-color: lightblue;
  width: 200px;
  height: 200px;
  overflow-wrap: break-word;
}
</style>
</head>
<body>
<h1>The overflow-wrap property</h1>
<div id="myDIV">
<div class="ex1">
This div contains a very long word: thisisaveryveryveryveryveryverylongword. By default, the long word will not break and wrap to the next line
</div>
</div>
</body>
</html>