Word-break: the word break does not work in Firefox 21

I added word-break:break-word to the comments on my site to start breaking words when they overflow the comment window, but it doesn't seem to work in Firefox. I made a JS script to install and it works. Therefore, something must be contradictory, but I cannot find it for life.

JS Fiddle (working): http://jsfiddle.net/F6K99/6/

Live issue: http://bit.ly/13NcY5F

+6
source share
3 answers

This can be done as follows:

A. Use word-break:break-all; instead of word-break:break-word;

WORKING DECISION

B. Or use word-wrap: break-word; instead of word-break:break-word;

WORKING DECISION

As far as I know, word-break does not have a break-word attribute.

Hope this helps.

+10
source

u hv use word-break: break-all; .. it should work after that.

+1
source

You should use the following CSS.

 word-break:normal; word-wrap:normal; 

This will work for both Chrome and Firefox.

+1
source

Source: https://habr.com/ru/post/947442/


All Articles