css overflow text wrap code example
Example 1: css wordwrap
.ow {
overflow-wrap: break-word;
word-wrap: break-word;
hyphens: auto;
white-space: normal; //this is the one that gets you all the time
}
Example 2: css break wrap header
h1{
word-break: break-word;
}
Example 3: css force string to wrap
<textarea style="width:100px; word-wrap:break-word;">
ACTGATCGAGCTGAAGCGCAGTGCGATGCTTCGATGATGCTGACGATGCTACGATGCGAGCATCTACGATCAGTC
</textarea>
<span style="width:100px; word-wrap:break-word; display:inline-block;">
ACTGATCGAGCTGAAGCGCAGTGCGATGCTTCGATGATGCTGACGATGCTACGATGCGAGCATCTACGATCAGTC
</span>
<tr style="overflow-wrap: anywhere"><td>1</td><td>2</td></tr>