Column Stretching
Column Stretching
leonta2010
Posts: 2Questions: 0Answers: 0
Hi,
One of my column has a long text and is stretching my column. How can i force it to wrap?
thank You
leon
One of my column has a long text and is stretching my column. How can i force it to wrap?
thank You
leon
This discussion has been closed.
Replies
tag in the header. Do you have white-space: nowrap in your CSS for the header, that would cause it as well.
Allan
would this method work in data cell too?
leon
You could use a
tag to force a break, or you could wrap the content of the cell in a DIV element at use the text-overflow: ellipsis option of CSS3. Equally there are a number of ellipsis options either for Javascript and DataTables on the server-side. This post, and the posts link to from it, might be of some interest in that area: http://www.datatables.net/forums/discussion/1711/wrap-text-on-any-character/p1 (there are other posts on ellipsis as well, just search the forum :-) ).
Allan