The word-break:break-word is not supported on edge, ie and firefox. I need the css to break the word if space is present the break at that space but if space is not present break the word directly(check fiddle in chrome or safari). As MS edge ,IE and Firefox does not support break-word, I had to use break-all but it also breaks the word in middle even if spaces are present in the sentence.
Is there any css that I can use here
Here is the fiddle the text try it on different browsers and you will get the issue I am getting
https://jsfiddle.net/emx9bL3y/7/
@supports (-ms-ime-align:auto) {
.white-space-pre-wrap{
word-wrap:break-word!important;
word-break:break-all!important;
display:inline-block;
}
}
Thanks
the solution at Breaking words using CSS states that the label should have a fixed width but in this case the width of the label will vary it can be 200px to the width of the screen. So if the screen size is bigger the width of the label will be bigger or the other way.