
Edward M. answered 11/15/19
Well-versed HTML5 and CSS3 Coder. Knowledgable in photoshop.
This can be done with CSS. Give the containing DIV a word-wrap property and assign it the value: "break-word". Like this:
/* --------CSS Stylesheet---------- */
div {
width: 200px;
height: 300px;
display: block;
background-color:green;
word-wrap: break-word;
}
A JSFiddle example can be found here:
https://jsfiddle.net/0kLt3c1a/