Avoid word-wrap in a cell

Avoid word-wrap in a cell

elyflyelyfly Posts: 2Questions: 0Answers: 0
edited April 2012 in DataTables 1.9
Hi all, I'm starting using DataTables 1.9 and it's very powerful!

I have I little problem I cannot resolve and I didn't found any answers about it: in my table, there are some cells that contain long text and I would like to avoid word-wrap of this text in the cell.
This happens both when text has white-space or not.

There is a property can help me?

Thank you

Replies

  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin
    This is down to how the browser flows text and isn't something that DataTables has control over. Is it white-space or hyphenation that you want to stop wrapping? For white space you can use CSS: white-space:nowrap; and for hyphenation you could use a technique like this: http://snook.ca/archives/html_and_css/line_breaks_and

    Allan
  • elyflyelyfly Posts: 2Questions: 0Answers: 0
    Thank you a lot Allan, it works fine!
This discussion has been closed.