CSS word-break does not work correctly in Microsoft edge

Panchi picture Panchi · Feb 13, 2016 · Viewed 15.2k times · Source

It has come to my attention that in Microsoft Edge there is a problem with some css attributes, such as :

word-break: break-word;

Is there a way of fixing this or is there a way around this?

Answer

Chris picture Chris · Feb 13, 2016

word-break: break-word is deprecated, and not supported by MS Edge or MS IE. See mozilla documentation about this.

word-break is supported by MS Edge and MS IE Here is a list of supported browsers.

Valid MS Edge and MS IE word-break properties are:

word-break: normal|break-all|keep-all|initial|inherit|unset;

Alternatively mozilla documentation specifies that overflow-wrap: break-word; acts the way that you want word-break: break-word to function.