DataTables uses space for nowrap while I have wrapping text
DataTables uses space for nowrap while I have wrapping text

Link to test case: https://codepen.io/vmvelev/pen/ExgRGVp
Hi Guys,
I have 3 tables on one row on my webpage and I am trying to add DataTables, but when I initialize it, the tables start using space as if there was the nowrap class used. I am not intending to use the nowrap, as some cells might contain a lot of text, and I would also like to keep my tables on the same row, but it is always changing their size from col-3 to col-12 or something else, depending on the text in the cell.
How can I avoid this?
This question has an accepted answers - jump to answer
Answers
Oddly CodePen isn’t allowing me to save changes there. But don’t use
col-3
on thetable
element - put a wrapper div around it - e.g.Allan
Awesome! Thank you very much @allan!