Column width and no wrap
Column width and no wrap
danchi
Posts: 9Questions: 4Answers: 0
**https://live.datatables.net/ticihaqe/3/edit**:
**Hello, I want to manage that no matter on which screen resolution is displayed table to not have wrap in body..
Also, what I would like is column to be auto width based on body if is possible. So if column header is Action and we display only number 1. can we header wrap but only header, something like on picture **:
This question has an accepted answers - jump to answer
Answers
Use the CSS
word-break
property if you want your browser to wrap text in the middle of a word.Allan
Hello, Thanks for the replay I put in css
word-break: normal; and still is breaking you can try on my live datatable link from above
Correct link: https://live.datatables.net/ticihaqe/4/edit
I'm not sure how much CSS you've done before, but that isn't valid CSS. You need to provide a selector:
https://live.datatables.net/ticihaqe/5/edit
Allan