White Space
The Telerik and Kendo UI White Space Utilities are CSS utility classes that enable you to control how element's white spaces will be handled.
Utility Class | CSS Property |
---|---|
.k-white-space-break-spaces | white-space: break-spaces; |
.k-white-space-normal | white-space: normal; |
.k-white-space-nowrap | white-space: nowrap; |
.k-white-space-pre | white-space: pre; |
.k-white-space-pre-wrap | white-space: pre-wrap; |
.k-white-space-pre-line | white-space: pre-line; |
Normal
Use the k-white-space-normal
utility to collapse new lines and wrap text so that you prevent overflowing.
Nowrap
Use the k-white-space-nowrap
utility to prevent text wrapping.
Pre
Use the k-white-space-pre
utility to wrap text only on newline. Spaces will be preserved and text will not be wrapped.
Pre Line
Use the k-white-space-pre-line
utility to wrap text on newline, elements, and when you need to prevent overflowing. Spaces will not be preserved.
Pre Wrap
Use the k-white-space-pre-wrap
utility to wrap text on newline, elements, and when you need to prevent overflowing. Spaces will be preserved.