I have a long string (a DNA sequence). It does not contain any whitespace character. e.g.:
ACTGATCGAGCTGAAGCGCAGTGCGATGCTTCGATGATGCTGACGATGCTACGATGCGAGCATCTACGATCAGTCGATGTAGCTAGTAGCATGTAGTGA
what would be the css selector to force this text to be wrapped in an html:textarea or in a xul:textbox
$string = "ACTGATCGAGCTGAAGCGCAGTGCGATGCTTCGATGATGCTGACGATGCTACGATGCGAGCATCTACGATCAGTCGATGTAGCTAGTAGCATGTAGTGA";
$wrappedstring = html_entity_decode(wordwrap($string,50,"<br>",true)); this is correct code
For
word-wrap:break-word;
to work for me, I had to make sure thedisplay
was set toblock
, and that the width was set on the element. In Safari, it had to have ap
tag and thewidth
had to be set inex
.