Is there a downside to utilizing the CSS property word-wrap:break-word
in this manner?
body
{
word-wrap: break-word;
}
The definitions for the values of this property are as follows:
- normal: Breaks words only at allowed breakpoints
- break-word: Permits unbreakable words to be divided
Implementing this property will primarily impact unbreakable words, such as long continuous strings that exceed their container’s width. For most text instances, it should have no discernible effect.
Considering the potential benefits, are there any drawbacks to using this globally? It has the ability to resolve layout issues without causing any apparent negative consequences. Applying it universally could save you from having to address overflowing text concerns individually throughout your content.