title: JQuery Datatables columns overflow
body: <p>I have problem with my datatable: it has to have a specific width, but also I want to display all its columns. The whole issue looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/vSKld.png" alt="overflow">
  <br><br>
  I found solutions <a href="https://stackoverflow.com/questions/8655001/datatables-width-overflow-for-a-lot-of-columns">Datatables Width Overflow For A Lot Of Columns</a> and <a href="https://stackoverflow.com/questions/7655508/jquery-datatables-overflow">JQuery Datatables overflow</a>, but I would rather use word breaking then have a scrollbar in my table.</p>
  
  <p>So, I found another solution <a href="https://stackoverflow.com/questions/8058109/jquery-datatable-overflow-and-text-wrapping-issues">jQuery DataTable overflow and text-wrapping issues</a> according to which i had to set:</p>
  
  <pre><code>  table.display { table-layout:fixed; }
    th, td { word-wrap:break-word; overflow:hidden; text-overflow: ellipsis; }
  </code></pre>
  
  <p>However, with this I had a problem with column width; all columns have same width and option "bAutoWidth: true" is ignored:
  <img src="https://i.stack.imgur.com/aaISx.png" alt="enter image description here"></p>
  
  <p>For example, there is an empty horizontal space in <em>Price</em> column, or after icons at last column. Moreover word-broken headers (th) seem very ugly, and it would look better if <em>Code</em>, <em>Count</em>, <em>Price</em> and <em>Place</em> columns were at their minimum size (their width matched width of header text).</p>
  
  <p>I would like to specify (somehow) preferred width for each column, or after how many letters it should wrap. I found <a href="https://bitbucket.org/JustinP8/datatables.breakcelltext" rel="nofollow noreferrer">breakCellText plugin</a> in this post <a href="https://stackoverflow.com/questions/8058109/jquery-datatable-overflow-and-text-wrapping-issues">jQuery DataTable overflow and text-wrapping issues</a>. Nevertheless, this plugin is not working with my datatables 1.9.4.</p>