I have a situation where there can be long words like 'hellowordsometext' or integer like '1234567891122' without any space in between. check this js please. http://jsfiddle.net/rzq5e/6/
how is it possible to break it in to next line after it reach the div width. what happens now is, it spans out out along with th div
<div>Solutionforentprise</div>
What you need is word-wrap: break-word;, this property will force the non spaced string to break inside the div
word-wrap: break-word;
div
Demo
div { width: 20px; word-wrap: break-word; }
2.1m questions
2.1m answers
60 comments
56.8k users