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
Here are some very useful answers:
How to prevent long words from breaking my div?
to save you time, this can be solved with css:
just setting
width
and addingfloat
worked for me :-)In a case where the table isnt of fixed size, below line worked for me:
Place zero-width spaces at the points where you want to allow breaks. The zero-width space is
​
in HTML. For example:ACTGATCG​AGCTGAAG​CGCAGTGC​GATGCTTC​GATGATGC
Use
<wbr>
tag:I think this is better than using zero-width space
​
which could cause problems when you copy the text.