0

Properties word-break:keep-all and word-break:break-all

what is the difference between these two features in the p tag? word-break: keep-all; word-break: break-all;

21st Feb 2021, 10:35 AM
Hadital
Hadital - avatar
1 Answer
+ 3
break-all: To prevent overflow, word breaks should be inserted between any two characters (excluding Chinese/Japanese/Korean text). keep-all: Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal. https://developer.mozilla.org/en-US/docs/Web/CSS/word-break
21st Feb 2021, 10:45 AM
visph
visph - avatar