Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82528

How to make text in cell wrap?

$
0
0

Example:
For a string "abcde fgh ijk", the result should be:

Name
---------
abcde fgh
ijk

This works out of the box, but the below scenario doesn't.
For a string "abcdefghijk", the result should be:

Name
----------
abcdefghij
k

Instead, the text doesn't get wrapped and a horizontal scroll bar gets added. Which I don't want.
How can I prevent the scroll bar being added?

In Chrome(58), the following rule works:
word-break: break-word;

But it doesn't in Firefox(53) and IE(11), since the value break-word is not available for these browsers.


Viewing all articles
Browse latest Browse all 82528


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>