We can set in CSS3 -moz-max-content (for Firefox) and -webkit-max-content (for Chrome, Safari) as width, but it seems -ms-max-co
-moz-max-content
-webkit-max-content
width
-ms-max-co
For text elements I tried word-break: keep-all; and it worked for me.
word-break: keep-all;