CSS Word Break
The word-break
property in CSS controls how words break within a line when they reach the edge of their container.
Basic Usage of the word-break
Property
The word-break
property can take several values:
word-break: normal;
: Default behavior. Breaks words at allowed break points or the edge of the container.word-break: break-all;
: Allows words to break at any point if they exceed the container's width.word-break: keep-all;
: Preserves word-break opportunities set by the browser's line breaking algorithm for languages like Chinese or Japanese.